← Back to team overview

openstack team mailing list archive

Re: "Shutoff" Status

 

Hey, sorry y'all. I grepped for SUSPENDED but needed to do it for SHUTOFF.
What can you tell me about SHUTOFF based on the code here?

Yep, not too embarrassed to admit this to 3000+ of you. :)

./nova/api/ec2/cloud.py:    vm_states.SHUTOFF: inst_state.SHUTOFF,
./nova/api/ec2/cloud.py:    if (vm_state == vm_states.SHUTOFF and
./nova/api/ec2/cloud.py:            if vm_state not in (vm_states.ACTIVE,
vm_states.SHUTOFF,
./nova/api/ec2/cloud.py:            if vm_state in (vm_states.ACTIVE,
vm_states.SHUTOFF):
Binary file ./nova/api/ec2/cloud.pyc matches
./nova/api/ec2/inst_state.py:SHUTOFF = 'shutoff'
./nova/api/ec2/inst_state.py:    SHUTOFF: TERMINATED_CODE,
Binary file ./nova/api/ec2/inst_state.pyc matches
./nova/api/openstack/common.py:    vm_states.SHUTOFF: {
./nova/api/openstack/common.py:        'default': 'SHUTOFF',
Binary file ./nova/api/openstack/common.pyc matches
./nova/compute/api.py:    @check_instance_state(vm_state=[vm_states.ACTIVE,
vm_states.SHUTOFF,
./nova/compute/api.py:
vm_states.SHUTOFF, vm_states.STOPPED])
./nova/compute/api.py:    @check_instance_state(vm_state=[vm_states.ACTIVE,
vm_states.SHUTOFF,
./nova/compute/api.py:
@check_instance_state(vm_state=[vm_states.STOPPED, vm_states.SHUTOFF])
./nova/compute/api.py:        if vm_state == vm_states.SHUTOFF:
./nova/compute/api.py:    @check_instance_state(vm_state=[vm_states.ACTIVE,
vm_states.SHUTOFF])
./nova/compute/api.py:    @check_instance_state(vm_state=[vm_states.ACTIVE,
vm_states.SHUTOFF])
./nova/compute/api.py:    @check_instance_state(vm_state=[vm_states.ACTIVE,
vm_states.SHUTOFF,
./nova/compute/api.py:    @check_instance_state(vm_state=[vm_states.ACTIVE,
vm_states.SHUTOFF],
./nova/compute/api.py:    @check_instance_state(vm_state=[vm_states.ACTIVE,
vm_states.SHUTOFF],
./nova/compute/api.py:    @check_instance_state(vm_state=[vm_states.ACTIVE,
vm_states.SHUTOFF],
./nova/compute/api.py:    @check_instance_state(vm_state=[vm_states.ACTIVE,
vm_states.SHUTOFF],
./nova/compute/api.py:    @check_instance_state(vm_state=[vm_states.ACTIVE,
vm_states.SHUTOFF,
./nova/compute/api.py:    @check_instance_state(vm_state=[vm_states.ACTIVE,
vm_states.SHUTOFF,
./nova/compute/api.py:    @check_instance_state(vm_state=[vm_states.ACTIVE,
vm_states.SHUTOFF,
Binary file ./nova/compute/api.pyc matches
./nova/compute/manager.py:
power_state.SHUTOFF,
./nova/compute/manager.py:
vm_state=vm_states.SHUTOFF)
Binary file ./nova/compute/manager.pyc matches
./nova/compute/power_state.py:SHUTOFF = 0x05
./nova/compute/power_state.py:    SHUTOFF: 'shutdown',
Binary file ./nova/compute/power_state.pyc matches
./nova/compute/vm_states.py:SHUTOFF = 'shutoff'
Binary file ./nova/compute/vm_states.pyc matches
./nova/tests/api/ec2/test_cloud.py:
test_instance_state(inst_state.TERMINATED_CODE, inst_state.SHUTOFF,
./nova/tests/api/ec2/test_cloud.py:
power_state.NOSTATE, vm_states.SHUTOFF)
./nova/tests/api/ec2/test_cloud.py:
power_state.NOSTATE, vm_states.SHUTOFF,
./nova/tests/baremetal/test_proxy_bare_metal.py:
dict(node_id=6, name='i-00000006', status=power_state.SHUTOFF),
./nova/tests/fakelibvirt.py:VIR_DOMAIN_SHUTOFF = 5
./nova/tests/fakelibvirt.py:        self._state = running and
VIR_DOMAIN_RUNNING or VIR_DOMAIN_SHUTOFF
./nova/tests/fakelibvirt.py:        self._state = VIR_DOMAIN_SHUTOFF
./nova/tests/test_compute.py:                            'vm_state':
vm_states.SHUTOFF})
./nova/tests/test_compute.py:        check_state(instance_uuid,
power_state.NOSTATE, vm_states.SHUTOFF,
./nova/tests/test_compute.py:                          power_state.NOSTATE,
vm_states.SHUTOFF, None)
./nova/tests/test_libvirt.py:                return {'state':
power_state.SHUTOFF}
./nova/virt/libvirt/connection.py:                    if state ==
power_state.SHUTOFF:
./nova/virt/libvirt/connection.py:
power_state.SHUTOFF,
Binary file ./nova/virt/libvirt/connection.pyc matches


On Mon, Apr 23, 2012 at 10:02 PM, Anne Gentle <anne@xxxxxxxxxxxxx> wrote:

> Hi all -
> We just added descriptions of each of the statuses to this page, but
> "SUSPENDED" is not one of them:
>
>
> http://docs.openstack.org/api/openstack-compute/2/content/List_Servers-d1e2078.html
>
> Who has more information about this server status? By grepping the code I
> get this additional info which may mean it only applies to bare metal
> deploy and/or xenapi?
>
> ./nova/api/ec2/cloud.py:    vm_states.SUSPENDED: inst_state.SUSPEND,
> ./nova/api/openstack/common.py:    vm_states.SUSPENDED: {
> ./nova/api/openstack/common.py:        'default': 'SUSPENDED',
> ./nova/compute/api.py:
> @check_instance_state(vm_state=[vm_states.SUSPENDED])
> ./nova/compute/api.py:                    vm_state=vm_states.SUSPENDED,
> ./nova/compute/manager.py:
> vm_state=vm_states.SUSPENDED,
> ./nova/compute/power_state.py:SUSPENDED = 0x07
> ./nova/compute/power_state.py:    SUSPENDED: 'suspended',
> ./nova/compute/vm_states.py:SUSPENDED = 'suspended'
> ./nova/tests/baremetal/test_proxy_bare_metal.py:
> dict(node_id=8, name='i-00000008', status=power_state.SUSPENDED),
> ./nova/tests/test_compute.py:                           {'vm_state':
> vm_states.SUSPENDED})
> ./nova/tests/test_compute.py:                search_opts={'power_state':
> power_state.SUSPENDED})
> ./nova/virt/baremetal/proxy.py:                            'power_state':
> power_state.SUSPENDED})
> ./nova/virt/xenapi/vm_utils.py:    'Suspended': power_state.SUSPENDED,
>
> Thanks,
> Anne
>
> On Mon, Apr 23, 2012 at 9:24 AM, Razique Mahroua <
> razique.mahroua@xxxxxxxxx> wrote:
>
>> Hello Alyssa, the status is the one reported when you suspend your
>> instance
>>
>> *Nuage & Co - Razique Mahroua** *
>> razique.mahroua@xxxxxxxxx
>>
>>
>> Le 16 avr. 2012 à 18:15, Alyssa Hurtgen a écrit :
>>
>>  Hi all,
>>
>>  I work at Rackspace and noticed a new Nova server status of "shutoff".
>>
>>    - What does this status mean?
>>    - How does the server get into this status?
>>    - Should the user be able to perform any actions against the server?
>>
>> Thanks,
>> Alyssa Hurtgen
>>  _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>

Follow ups

References