yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #48148
[Bug 1557888] Re: Nova CLI - No message on nova-agent deletion
OK, got it now, so it's about the feedback of the python-novaclient.
It looks like we have 3 different strategies to provide feedback:
1. Print a message that the task is accepted
2. Print a table with details of the deleted object
3. Print nothing
Feedback 1 is usefull for long running asynchronous tasks like the
creation of instances:
stack@stack:~$ nova boot --image cirros-0.3.4-x86_64-uec \
--flavor m1.tiny my-own-instance
# [... snip instance details ...]
stack@stack:~$ nova delete my-own-instance
Request to delete server my-own-instance has been accepted.
stack@stack:~$
Feeback 2 is used for deleting a flavor:
stack@stack:~$ nova flavor-create my-own-flavor 12345 512 0 3
# [... snip flavor details ...]
stack@stack:~$ nova flavor-delete my-own-flavor
+-------+---------------+-----------+------+-----------+------+[...]
| ID | Name | Memory_MB | Disk | Ephemeral | Swap |[...]
+-------+---------------+-----------+------+-----------+------+[...]
| 12345 | my-own-flavor | 512 | 0 | 0 | |[...]
+-------+---------------+-----------+------+-----------+------+[...]
stack@stack:~$
Feedback 3 is used for deleting an agent (as you find out) and also for
deleting a keypair:
stack@stack:~$ nova agent-create linux x86 1.0 http://dummy.com \
0e49760580a20076fbba7b1e3ccd20e2 libvirt
# [... snip agent details ...]
stack@stack:~$ nova agent-delete 1
stack@stack:~$
stack@stack:~$ nova keypair-add my-own-keypair
# [... snip keypair details ...]
stack@stack:~$ nova keypair-delete my-own-keypair
stack@stack:~$
Incomplete:
I'd say that "nova agent-delete" doesn't fall into the "feedback 1"
category as it isn't a long running task. Because other "nova *-delete"
commands also don't provide feedback, I'm not sure if this is a valid
bug report. I'm going to ask around.
Test Env:
I tested with Nova master (Mitaka cycle), commit 859ff48
** Project changed: nova => python-novaclient
** Changed in: python-novaclient
Status: New => Incomplete
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1557888
Title:
Nova CLI - No message on nova-agent deletion
Status in python-novaclient:
Incomplete
Bug description:
In Nova, when deleting a nova-agent , no message or alert is generated.
But for other commands eg. nova delete <instance-id>, after deleting an
instance a proper message is generated.
To manage notifications about this bug go to:
https://bugs.launchpad.net/python-novaclient/+bug/1557888/+subscriptions
References