Add a generalized wait command

Registered by Dean Troyer

OSC has --wait options for a couple of existing commands that will poll the API for a specific status. This would be useful to generalize into a wait action and allow the user to specify additional conditions.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Dean Troyer
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

An equivalent to the server create --wait option might look like this:

  openstack server wait --timeout 30 --status active <server-name>

Additional options for other conditions can be defined as makes sense for each supported object.

It might be handy to have a --failure <status> argument that is action append to add multiple statuses that indicate failure and will exit != 0

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.