input-output-hk / nixops-packet

NixOps Packet.net Plugin
GNU Lesser General Public License v3.0
5 stars 5 forks source link

Instance state is not being updated properly in all cases #24

Closed johnalotoski closed 4 years ago

johnalotoski commented 4 years ago

During provisioning, for example, state goes from MISSING -> STARTING -> UP and then back to STARTING, when it should be staying at UP.

machineDemo> creating packet device ...
machineDemo> project: '$PROJECT_ID'
machineDemo> facility: $FACILITY
machineDemo> keyid: $KEY_ID
machineDemo> instance id: $INSTANCE_ID

show_state = Missing
show_state = Starting

machineDemo> instance is in queued state
machineDemo> waiting for the machine to enter the state 'active' ...
machineDemo> instance is in queued state
...
machineDemo> instance is in provisioning, 75% done
machineDemo> instance is in active state
machineDemo> 2020-09-06T15:48:28Z -- Device connected to DHCP system
machineDemo> 2020-09-06T15:48:33Z -- Provision complete! Your device is ready to go.

show_state = Up
show_state = Starting                         # <----  bug

machineDemo> $IP
machineDemo> waiting for SSH.......
...