Hello.
While debugging IPS issue in zone (while updating you can see
"WARNING: The boot environment being modified is not the active one.
Changes
made will not be reflected on the next boot."
I found out the following libbe issue in zone.
When I run the following script in global zone I see that only activated
boot environment is returned:
# cat ~alp/tmp/1.py
import libbe_py as be
beVals = be.beList()
rc, beList = beVals
for be in beList:
if be.get("active_unbootable", False):
print "active_unbootable: ", be
continue
if be.get("active_boot"):
print "active_boot: ", be.get("orig_be_name"), " ", be
# python2.6 ~alp/tmp/1.py
active_boot: oi-hipster-2014-12-09 {'orig_be_name':
'oi-hipster-2014-12-09', 'policy': 'static', 'uuid_str':
'34e3ff52-e741-6eb6-f246-99a264eef451', 'date': 1418123097L,
'space_used': 11721427456L, 'root_ds':
'rpool/ROOT/oi-hipster-2014-12-09', 'active': True, 'mountpoint': '/',
'active_boot': True, 'mounted': True, 'orig_be_pool': 'rpool'}
But in zone I get :
# python2.6 ~alp/tmp/1.py
active_boot: zbe-1 {'orig_be_name': 'zbe-1', 'policy': 'static',
'date': 1416634324L, 'space_used': 162814464L, 'root_ds':
'data/zones/build/ROOT/zbe-1', 'active': False, 'mountpoint': 'legacy',
'active_boot': True, 'mounted': False, 'orig_be_pool': 'data'}
active_boot: zbe-2 {'orig_be_name': 'zbe-2', 'policy': 'static',
'date': 1416992621L, 'space_used': 150393344L, 'root_ds':
'data/zones/build/ROOT/zbe-2', 'active': False, 'mountpoint': 'legacy',
'active_boot': True, 'mounted': False, 'orig_be_pool': 'data'}
active_boot: zbe-3 {'orig_be_name': 'zbe-3', 'policy': 'static',
'date': 1417011408L, 'space_used': 185104896L, 'root_ds':
'data/zones/build/ROOT/zbe-3', 'active': False, 'mountpoint': 'legacy',
'active_boot': True, 'mounted': False, 'orig_be_pool': 'data'}
active_boot: zbe-5 {'orig_be_name': 'zbe-5', 'policy': 'static',
'date': 1418125900L, 'space_used': 130484016128L, 'root_ds':
'data/zones/build/ROOT/zbe-5', 'active': True, 'mountpoint': '/',
'active_boot': True, 'mounted': True, 'orig_be_pool': 'data'}
It seems to me libbe bug - in zone every boot environment is marked as
active_boot.
--
Best regards,
Alexander Pyhalov,
system administrator of Southern Federal University IT department
-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription:
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com