Re: [zones-discuss] ZoneMgr Survey: 2pkg or not 2pkg... that is the question...

2007-03-02 Thread Tony Ambrozie

+1 from me (non-binding), for the reasons listed under bullet points 3 and
5.  I appreciate the amount of work to be done.

BTW, I understand trying not to jam the aliases with responses, but I would
suggest that all discussions and voting be done in the open, on the list.

Thank you,

On 3/2/07, Brad Diggs <[EMAIL PROTECTED]> wrote:


Hello again,

Several people have asked me to consider converting the Zone Manager
from a single script into a Solaris package.  The suggested benefits
include the following:
  * Can break out the help info into a man page
  * Can add support for multiple languages in the man page
  * Can standardize the location of the zonemgr script.  Presumably
in /opt/SUNWzonemgr/bin or /opt/SFWzonemgr/bin or something like
that.
  * Can break out the license info into its own file as well.
  * Can create dependencies in the package to ensure requisite software
is installed for the zone manager to work properly.

All of these benefits have value but it is a lot of work just to convert
a script into a package.  The biggest part of course is doing the
language translation of the help/man file.  The biggest need here is to
have folks that can make sure that the translation of the man page is
correct.

So I am seeking your input.  If I get a quorum that prefer a package
over a script then I will make it a priority for version 1.9.  Otherwise
I won't bother.

You can respond to me directly without copying the zones-discuss alias
so as not to jam the alias with responses.

Thanks in advance for your input!

Brad

___
zones-discuss mailing list
zones-discuss@opensolaris.org

___
zones-discuss mailing list
zones-discuss@opensolaris.org

[zones-discuss] zone cloning question

2008-03-30 Thread Tony Ambrozie
Hi,

I cloned an existing zone with *zoneadm -z newzone clone **oldzone** *etc.
After successfully booting the new zone, I noticed that services were in
different states between the two zones (for example, ssh was offline in the
new zone).  Isn't the services repository supposed to be cloned as is?
Secondly, overall disk space utilized by the new zone was considerably
different than the old zone, are there files not subject to cloning (maybe
logs, however most of the /var/adm/* seems to have been copied).

I am using b64 on x86.

Thank you,
___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] Making zoneadm more like the other adms...

2008-06-15 Thread Tony Ambrozie
Your code changes for both zoneadm and zonecfg would preserve the current
zonexxx -z zonename for backwards compatibility purposes, is that correct?

Thank you,


On Mon, Jun 9, 2008 at 11:51 AM, Darren Reed <[EMAIL PROTECTED]> wrote:

> Someone mentioned zonecfg was the cause of some similar awkwardness...
>
> So here's a patch attached for that.
>
> Darren
>
>
>
> --- usr/src/cmd/zonecfg/zonecfg.c ---
>
> Index: usr/src/cmd/zonecfg/zonecfg.c
> *** /biscuit/onnv/usr/src/cmd/zonecfg/zonecfg.c Mon Mar 24 17:30:38 2008
> --- /biscuit/onnv_20080608/usr/src/cmd/zonecfg/zonecfg.cMon Jun  9
> 11:47:41 2008
> ***
> *** 1071,1076 
> --- 1071,1077 
>execname, cmd_to_str(CMD_HELP));
>(void) fprintf(fp, "\t%s -z \t\t\t(%s)\n",
>execname, gettext("interactive"));
> +   (void) fprintf(fp, "\t%s  \n", execname);
>(void) fprintf(fp, "\t%s -z  \n", execname);
>(void) fprintf(fp, "\t%s -z  -f \n",
>execname);
> ***
> *** 6653,6689 
>return (execbasename);
>  }
>
> ! int
> ! main(int argc, char *argv[])
>  {
> !   int err, arg;
> !   struct stat st;
> !
> !   /* This must be before anything goes to stdout. */
> !   setbuf(stdout, NULL);
> !
> !   saw_error = B_FALSE;
> !   cmd_file_mode = B_FALSE;
> !   execname = get_execbasename(argv[0]);
> !
> !   (void) setlocale(LC_ALL, "");
> !   (void) textdomain(TEXT_DOMAIN);
> !
> !   if (getzoneid() != GLOBAL_ZONEID) {
> !   zerr(gettext("%s can only be run from the global zone."),
> !   execname);
> !   exit(Z_ERR);
> !   }
> !
> !   if (argc < 2) {
> !   usage(B_FALSE, HELP_USAGE | HELP_SUBCMDS);
>exit(Z_USAGE);
>}
> !   if (strcmp(argv[1], cmd_to_str(CMD_HELP)) == 0) {
> !   (void) one_command_at_a_time(argc - 1, &(argv[1]));
> !   exit(Z_OK);
> !   }
>
>while ((arg = getopt(argc, argv, "?f:R:z:")) != EOF) {
>switch (arg) {
>case '?':
> --- 6654,6679 
>return (execbasename);
>  }
>
> ! static void
> ! set_zonename(char *zonename)
>  {
> !   if (strcmp(zonename, GLOBAL_ZONENAME) == 0) {
> !   global_zone = B_TRUE;
> !   } else if (zonecfg_validate_zonename(zonename) != Z_OK) {
> !   zone_perror(zonename, Z_BOGUS_ZONE_NAME, B_TRUE);
> !   usage(B_FALSE, HELP_SYNTAX);
>exit(Z_USAGE);
>}
> !   (void) strlcpy(zone, zonename, sizeof (zone));
> !   (void) strlcpy(revert_zone, zonename, sizeof (zone));
> ! }
>
> + static void
> + get_clioptions(int argc, char *argv[])
> + {
> +   struct stat st;
> +   int arg;
> +
>while ((arg = getopt(argc, argv, "?f:R:z:")) != EOF) {
>switch (arg) {
>case '?':
> ***
> *** 6712,6726 
>zonecfg_set_root(optarg);
>break;
>case 'z':
> !   if (strcmp(optarg, GLOBAL_ZONENAME) == 0) {
> !   global_zone = B_TRUE;
> !   } else if (zonecfg_validate_zonename(optarg) !=
> Z_OK) {
> !   zone_perror(optarg, Z_BOGUS_ZONE_NAME,
> B_TRUE);
> !   usage(B_FALSE, HELP_SYNTAX);
> !   exit(Z_USAGE);
> !   }
> !   (void) strlcpy(zone, optarg, sizeof (zone));
> !   (void) strlcpy(revert_zone, optarg, sizeof (zone));
>break;
>default:
>usage(B_FALSE, HELP_USAGE);
> --- 6702,6708 
>zonecfg_set_root(optarg);
>break;
>case 'z':
> !   set_zonename(optarg);
>break;
>default:
>usage(B_FALSE, HELP_USAGE);
> ***
> *** 6727,6733 
> --- 6709,6761 
>exit(Z_USAGE);
>}
>}
> + }
>
> + int
> + main(int argc, char *argv[])
> + {
> +   int err;
> +
> +   /* This must be before anything goes to stdout. */
> +   setbuf(stdout, NULL);
> +
> +   saw_error = B_FALSE;
> +   cmd_file_mode = B_FALSE;
> +   execname = get_execbasename(argv[0]);
> +
> +   (void) setlocale(LC_ALL, "");
> +   (void) textdomain(TEXT_DOMAIN);
> +
> +   if (getzoneid() != GLOBAL_ZONEID) {
> +   zerr(gettext("%s can only be run from the global zone."),
> +   execname);
> +   exit(Z_ERR);
> +   }
> +
> +   if (argc < 2) {
> +   usage(B_FALSE, HELP_USAGE | HELP_SUBCMDS);
> +   exit(Z_USAGE);
> +   }
> +   if (strcmp(argv[1], cmd_to_str(CMD_HELP))