2017-01-24 20:49:06 |
Sulochan Acharya |
bug |
|
|
added bug |
2017-01-26 14:21:52 |
Sulochan Acharya |
python-cratonclient: importance |
Undecided |
High |
|
2017-01-26 14:21:55 |
Sulochan Acharya |
python-cratonclient: assignee |
|
Sulochan Acharya (sulochan-acharya) |
|
2017-02-14 16:31:48 |
Jim Baker |
python-cratonclient: assignee |
Sulochan Acharya (sulochan-acharya) |
Jim Baker (jimbaker) |
|
2017-02-15 00:12:39 |
Jim Baker |
bug |
|
|
added subscriber Thomas Maddox |
2017-02-15 00:14:48 |
Jim Baker |
description |
in two ways:
host-variables 123 = display table
host-variables 123 --format=json |
CLI and client support for get/set/delete of resource vars
Functionality should be supported both for the Python client:
host = craton.hosts.get(item_id=8)
host.variables.update(x='foo', y={'a': 47, 'b': True}, z='baz')
As well as for the CLI:
craton region-vars-get 1
craton cell-vars-get 3 x=true y=47 z=foo/bar w=3.14159
cat <<EOF | craton host-vars-set 13
{
"glance_default_store": "not-so-swift",
"neutron_l2_population": false,
"make_stuff_up": true,
"some/namespaced/variable": {"a": 1, "b": 2}
}
EOF
craton host-vars-get --format=json 13 | jq -C
craton cell-vars-delete 13 make_stuff_up
craton cell-vars-set 13 x= y=42 # deletes x
etc.
The following resources should be supported: projects, regions, cells, hosts, network devices.
The general subcommand convention will be <resources>-vars-get,
<resources>-vars-set, and <resource>-vars-delete.
Code will be implemented to minimize the overhead of doing
this for additional resources in the future, such as cloud, user,
workflow, etc.
It would be more ergonomic if the CLI supported referencing a
resource, like a host, by an identifying name, not just an ID, but
any such work will be done in a separate bug. |
|
2017-02-15 00:14:59 |
Jim Baker |
python-cratonclient: milestone |
|
v0.1.0 |
|
2017-02-15 00:15:03 |
Jim Baker |
python-cratonclient: importance |
High |
Critical |
|
2017-02-15 00:15:08 |
Jim Baker |
python-cratonclient: status |
New |
In Progress |
|
2017-02-15 00:15:20 |
Jim Baker |
summary |
Variables should be available from cli |
Variables should be available from Python client/CLI |
|
2017-02-15 00:15:42 |
Jim Baker |
summary |
Variables should be available from Python client/CLI |
Support get/set/delete variables in Python client/CLI |
|
2017-02-28 17:41:25 |
Thomas Maddox |
python-cratonclient: assignee |
Jim Baker (jimbaker) |
Thomas Maddox (thomas-maddox) |
|
2017-03-06 17:20:32 |
OpenStack Infra |
python-cratonclient: status |
In Progress |
Fix Released |
|