Actions
Bug #13444
closedlibbe_py should provide nextboot information
Start date:
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:
Description
The python interface to libbe does not currently expose the nextboot flag:
bloody% beadm list BE Active Mountpoint Space Policy Created 20210107 NR / 131.82G static 2021-01-07 23:59 ksh-onu T - 470.15M static 2021-01-09 20:04
bloody% python3 Python 3.9.1 (default, Jan 7 2021, 16:20:35) [GCC 10.2.0] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> from pprint import pprint >>> import libbe_py as be >>> pprint(be.beList(bename='ksh-onu', nosnaps=True)) [0, [{'active': False, 'active_boot': False, 'date': 1610222652, 'global_active': True, 'mounted': False, 'mountpoint': '/', 'orig_be_name': 'ksh-onu', 'orig_be_pool': 'rpool', 'policy': 'static', 'root_ds': 'rpool/ROOT/ksh-onu', 'space_used': 492986368, 'uuid_str': '3969e6e0-bbd1-c87f-a6f9-d0d52c057a03'}]]
Related issues
Updated by Andy Fiddaman over 2 years ago
- Related to Feature #7537: want nextboot (one time boot) support added
Updated by Andy Fiddaman over 2 years ago
After, the active_nexboot
field is populated.
> pprint(be.beList(bename='ksh-onu', nosnaps=True)) [0, [{'active': False, 'active_boot': False, 'active_nextboot': True, 'date': 1610222652, 'global_active': True, 'mounted': False, 'mountpoint': '/', 'orig_be_name': 'ksh-onu', 'orig_be_pool': 'rpool', 'policy': 'static', 'root_ds': 'rpool/ROOT/ksh-onu', 'space_used': 492986368, 'uuid_str': '3969e6e0-bbd1-c87f-a6f9-d0d52c057a03'}]]
Updated by Electric Monk over 2 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
git commit bac90afdc3c952be2a041bb1b669ac56cef7d145
commit bac90afdc3c952be2a041bb1b669ac56cef7d145 Author: Andy Fiddaman <omnios@citrus-it.co.uk> Date: 2021-01-12T13:37:34.000Z 13444 libbe_py should provide nextboot information Reviewed by: C Fraire <cfraire@me.com> Reviewed by: Dominik Hassler <hadfl@omnios.org> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Gordon Ross <gordon.w.ross@gmail.com>
Actions