{"action":"created","issue":{"url":"https://api.github.com/repos/iocage/iocage/issues/105","labels_url":"https://api.github.com/repos/iocage/iocage/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/iocage/iocage/issues/105/comments","events_url":"https://api.github.com/repos/iocage/iocage/issues/105/events","html_url":"https://github.com/iocage/iocage/issues/105","id":86386736,"number":105,"title":"rcshutdown produces errors, fails to stop jails","user":{"login":"freqlabs","id":5410316,"avatar_url":"https://avatars.githubusercontent.com/u/5410316?v=3","gravatar_id":"","url":"https://api.github.com/users/freqlabs","html_url":"https://github.com/freqlabs","followers_url":"https://api.github.com/users/freqlabs/followers","following_url":"https://api.github.com/users/freqlabs/following{/other_user}","gists_url":"https://api.github.com/users/freqlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/freqlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freqlabs/subscriptions","organizations_url":"https://api.github.com/users/freqlabs/orgs","repos_url":"https://api.github.com/users/freqlabs/repos","events_url":"https://api.github.com/users/freqlabs/events{/privacy}","received_events_url":"https://api.github.com/users/freqlabs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/iocage/iocage/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-09T00:36:57Z","updated_at":"2015-06-09T21:41:23Z","closed_at":null,"body":"To test that all my jails are starting in the correct order, I tried running `iocage rcshutdown` to stop all the jails with the \"boot\" property set to \"on\", after which I intended to run `iocage rcboot` to start them again. The rcshutdown command only stopped one of the jails, and I received the following errors:\r\n```\r\n* [I|O|C] shutting down jails...\r\n* Stopping 9ea25ab3-0db2-11e5-b42b-0025907cc3f4 (some.jail.name)\r\n  + Running pre-stop         OK\r\n  + Stopping services        OK\r\n  + Removing jail process    OK\r\n  + Running post-stop        OK\r\ncannot open 'system/iocage/jails/2c9a5625-0ce9-11e5-b42b-0025907cc3f4\r\nsystem/iocage/jails/879b0704-0d70-11e5-b42b-0025907cc3f4\r\nsystem/iocage/jails/9e553f4d-0d55-11e5-b42b-0025907cc3f4\r\nsystem/iocage/jails/9ea25ab3-0db2-11e5-b42b-0025907cc3f4\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4': invalid dataset name\r\n[: ==: unexpected operator\r\ncannot open 'system/iocage/jails/2c9a5625-0ce9-11e5-b42b-0025907cc3f4\r\nsystem/iocage/jails/879b0704-0d70-11e5-b42b-0025907cc3f4\r\nsystem/iocage/jails/9e553f4d-0d55-11e5-b42b-0025907cc3f4\r\nsystem/iocage/jails/9ea25ab3-0db2-11e5-b42b-0025907cc3f4\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4': invalid dataset name\r\n[: ==: unexpected operator\r\ncannot open 'system/iocage/jails/2c9a5625-0ce9-11e5-b42b-0025907cc3f4\r\nsystem/iocage/jails/879b0704-0d70-11e5-b42b-0025907cc3f4\r\nsystem/iocage/jails/9e553f4d-0d55-11e5-b42b-0025907cc3f4\r\nsystem/iocage/jails/9ea25ab3-0db2-11e5-b42b-0025907cc3f4\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4': invalid dataset name\r\n[: ==: unexpected operator\r\ncannot open 'system/iocage/jails/2c9a5625-0ce9-11e5-b42b-0025907cc3f4\r\nsystem/iocage/jails/879b0704-0d70-11e5-b42b-0025907cc3f4\r\nsystem/iocage/jails/9e553f4d-0d55-11e5-b42b-0025907cc3f4\r\nsystem/iocage/jails/9ea25ab3-0db2-11e5-b42b-0025907cc3f4\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4': invalid dataset name\r\n[: ==: unexpected operator\r\n```\r\nIf this is to be expected when not performing an actual shutdown of the host, a simple note added to the documentation explaining that the commands should not be invoked by a user might suffice."},"comment":{"url":"https://api.github.com/repos/iocage/iocage/issues/comments/110512518","html_url":"https://github.com/iocage/iocage/issues/105#issuecomment-110512518","issue_url":"https://api.github.com/repos/iocage/iocage/issues/105","id":110512518,"user":{"login":"freqlabs","id":5410316,"avatar_url":"https://avatars.githubusercontent.com/u/5410316?v=3","gravatar_id":"","url":"https://api.github.com/users/freqlabs","html_url":"https://github.com/freqlabs","followers_url":"https://api.github.com/users/freqlabs/followers","following_url":"https://api.github.com/users/freqlabs/following{/other_user}","gists_url":"https://api.github.com/users/freqlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/freqlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freqlabs/subscriptions","organizations_url":"https://api.github.com/users/freqlabs/orgs","repos_url":"https://api.github.com/users/freqlabs/repos","events_url":"https://api.github.com/users/freqlabs/events{/privacy}","received_events_url":"https://api.github.com/users/freqlabs/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T21:41:23Z","updated_at":"2015-06-09T21:41:23Z","body":"These are all basejails. When I get the chance I'll try reproducing this behavior on a machine I'm not using. Here is some additional info for you:\r\n\r\n```\r\n# iocage show priority | sort -nk 2\r\nUUID                                  priority\r\n9e553f4d-0d55-11e5-b42b-0025907cc3f4  5\r\n2c9a5625-0ce9-11e5-b42b-0025907cc3f4  10\r\n879b0704-0d70-11e5-b42b-0025907cc3f4  10\r\na092e40b-0cbc-11e5-b42b-0025907cc3f4  10\r\n9ea25ab3-0db2-11e5-b42b-0025907cc3f4  20\r\n```\r\n\r\nThe next jail to be shut down should be `a092e40b-0cbc-11e5-b42b-0025907cc3f4`, so more info on that one:\r\n```\r\n# iocage get all a092e40b-0cbc-11e5-b42b-0025907cc3f4\r\ninterfaces:vnet0:bridge0,vnet1:bridge1\r\nvnet:off\r\nhost_hostname:a092e40b-0cbc-11e5-b42b-0025907cc3f4\r\nhostname:a092e40b-0cbc-11e5-b42b-0025907cc3f4\r\nip4_addr:em0|999.999.999.999,lo1|127.0.1.100\r\nip4_saddrsel:1\r\nip4:new\r\nip6_addr:none\r\nip6_saddrsel:1\r\nip6:new\r\ndefaultrouter:none\r\ndefaultrouter6:none\r\nexec_fib:0\r\nvnet0_mac:none\r\nvnet1_mac:none\r\nvnet2_mac:none\r\nvnet3_mac:none\r\ndevfs_ruleset:4\r\nmount_devfs:1\r\nexec_start:/bin/sh /etc/rc\r\nexec_stop:/bin/sh /etc/rc.shutdown\r\nexec_prestart:/usr/bin/true\r\nexec_prestop:/usr/bin/true\r\nexec_poststop:/usr/bin/true\r\nexec_poststart:/usr/bin/true\r\nexec_clean:1\r\nexec_timeout:60\r\nstop_timeout:30\r\nexec_jail_user:root\r\nexec_system_jail_user:0\r\nexec_system_user:root\r\nmount_fdescfs:1\r\nmount_procfs:0\r\nenforce_statfs:2\r\nchildren_max:0\r\nlogin_flags:-f root\r\nsecurelevel:2\r\nallow_set_hostname:0\r\nallow_sysvipc:0\r\nallow_raw_sockets:0\r\nallow_chflags:0\r\nallow_mount:0\r\nallow_mount_devfs:0\r\nallow_mount_nullfs:0\r\nallow_mount_procfs:0\r\nallow_mount_tmpfs:0\r\nallow_mount_zfs:0\r\nallow_quotas:0\r\nallow_socket_af:0\r\nhost_hostuuid:a092e40b-0cbc-11e5-b42b-0025907cc3f4\r\nmemoryuse:8G:log\r\nmemorylocked:off\r\nvmemoryuse:off\r\nmaxproc:off\r\ncputime:off\r\npcpu:off\r\ndatasize:off\r\nstacksize:off\r\ncoredumpsize:off\r\nopenfiles:off\r\npseudoterminals:off\r\nswapuse:off\r\nnthr:off\r\nmsgqqueued:off\r\nmsgqsize:off\r\nnmsgq:off\r\nnsemop:off\r\nnshm:off\r\nshmsize:off\r\nwallclock:off\r\ntag:www.example.com\r\ntemplate:no\r\nrlimits:off\r\nboot:on\r\nnotes:none\r\nowner:root\r\npriority:10\r\nlast_started:2015-06-09_20:47:02\r\ntype:basejail\r\nhostid:49434d53-0200-907c-2500-7c902500f4c3\r\ncpuset:off\r\njail_zfs:off\r\njail_zfs_dataset:somedataset\r\nrelease:10.1-RELEASE\r\nhack88:0\r\nsync_stat:-\r\nsync_target:none\r\nsync_tgt_zpool:none\r\n```\r\n\r\n```\r\n# zfs list -r system/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4\r\nNAME                                                                        USED  AVAIL  REFER  MOUNTPOINT\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4                    159M  1.72T   100K  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root               159M  1.72T   131M  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/bin            72K  1.72T   960K  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/bin\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/boot            8K  1.72T  1.26M  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/boot\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/lib            72K  1.72T  5.54M  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/lib\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/libexec         8K  1.72T   260K  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/libexec\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/rescue          8K  1.72T  4.95M  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/rescue\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/sbin           72K  1.72T  3.86M  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/sbin\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr          28.0M  1.72T  27.5M  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/bin       120K  1.72T  49.4M  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/bin\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/include     8K  1.72T  11.4M  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/include\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/lib       136K  1.72T  41.2M  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/lib\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/lib32       8K  1.72T  40.2M  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/lib32\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/libdata     8K  1.72T   180K  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/libdata\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/libexec    72K  1.72T  2.22M  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/libexec\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/sbin       72K  1.72T  8.04M  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/sbin\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/share      72K  1.72T  45.8M  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/share\r\nsystem/iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/src         8K  1.72T   506M  /iocage/jails/a092e40b-0cbc-11e5-b42b-0025907cc3f4/root/usr/src\r\n```\r\n\r\nAnd for fun some more info:\r\n```\r\n# iocage show jail_zfs\r\nUUID                                  jail_zfs\r\n2c9a5625-0ce9-11e5-b42b-0025907cc3f4  off\r\n879b0704-0d70-11e5-b42b-0025907cc3f4  off\r\n9e553f4d-0d55-11e5-b42b-0025907cc3f4  on\r\n9ea25ab3-0db2-11e5-b42b-0025907cc3f4  on\r\na092e40b-0cbc-11e5-b42b-0025907cc3f4  off\r\n# iocage show jail_zfs_dataset\r\nUUID                                  jail_zfs_dataset\r\n2c9a5625-0ce9-11e5-b42b-0025907cc3f4  somedataset\r\n879b0704-0d70-11e5-b42b-0025907cc3f4  somedataset\r\n9e553f4d-0d55-11e5-b42b-0025907cc3f4  somedataset/database\r\n9ea25ab3-0db2-11e5-b42b-0025907cc3f4  somedataset/mail\r\na092e40b-0cbc-11e5-b42b-0025907cc3f4  somedataset\r\n# iocage show allow_mount\r\nUUID                                  allow_mount\r\n2c9a5625-0ce9-11e5-b42b-0025907cc3f4  0\r\n879b0704-0d70-11e5-b42b-0025907cc3f4  0\r\n9e553f4d-0d55-11e5-b42b-0025907cc3f4  1\r\n9ea25ab3-0db2-11e5-b42b-0025907cc3f4  1\r\na092e40b-0cbc-11e5-b42b-0025907cc3f4  0\r\n# iocage show allow_mount_zfs\r\nUUID                                  allow_mount_zfs\r\n2c9a5625-0ce9-11e5-b42b-0025907cc3f4  0\r\n879b0704-0d70-11e5-b42b-0025907cc3f4  0\r\n9e553f4d-0d55-11e5-b42b-0025907cc3f4  1\r\n9ea25ab3-0db2-11e5-b42b-0025907cc3f4  1\r\na092e40b-0cbc-11e5-b42b-0025907cc3f4  0\r\n# iocage show enforce_statfs\r\nUUID                                  enforce_statfs\r\n2c9a5625-0ce9-11e5-b42b-0025907cc3f4  2\r\n879b0704-0d70-11e5-b42b-0025907cc3f4  2\r\n9e553f4d-0d55-11e5-b42b-0025907cc3f4  1\r\n9ea25ab3-0db2-11e5-b42b-0025907cc3f4  1\r\na092e40b-0cbc-11e5-b42b-0025907cc3f4  2\r\n```"}}