add "update" to instance. #549

Merged
merged 1 commit into from Apr 22, 2015

Projects

None yet

3 participants

@hansode
Member
hansode commented Apr 15, 2015

Feature

This change will provide updating instance params.

How to use

$ mussel.sh instance update i-xxx --display-name foo
$ mussel.sh instance update i-xxx --ssh-key-id ssh-xxx
$ mussel.sh instance update i-xxx --display-name foo --ssh-key-id ssh-xxx

sample output:

$ mussel.sh instance update i-uxfjkucx --ssh-key-id ssh-f18g6pe3 --display-name ssh-f18g6pe3
---
:id: i-uxfjkucx
:account_id: a-shpoolxx
:host_node: hn-1box64
:cpu_cores: 1
:memory_size: 256
:arch: x86_64
:image_id: wmi-haproxy1d64
:created_at: 2015-04-15 12:05:17.000000000 Z
:updated_at: 2015-04-15 12:39:34.863434452 Z
:terminated_at:
:deleted_at:
:state: running
:status: online
:ssh_key_pair:
  :uuid: ssh-f18g6pe3
  :display_name: ''
:volume:
- :vol_id: vol-t57bv5pb
  :state: attached
:vif:
- :vif_id: vif-r7xfn72a
  :network_id: nw-demo1
  :ipv4:
    :address: 10.0.2.100
    :nat_address:
  :security_groups:
  - sg-aq9xw03r
- :vif_id: vif-y2cguuxp
  :network_id: nw-demo8
  :ipv4:
    :address: 10.1.0.10
    :nat_address:
  :security_groups: []
:hostname: uxfjkucx
:ha_enabled: 0
:hypervisor: openvz
:display_name: ssh-f18g6pe3
:service_type: std
:monitoring:
  :enabled: false
  :mail_address: []
  :items: {}
:labels:
- :resource_uuid: i-uxfjkucx
  :name: monitoring.enabled
  :value_type: 1
  :value: 'false'
  :created_at: 2015-04-15 12:05:17.000000000 Z
  :updated_at: 2015-04-15 12:05:17.000000000 Z
:boot_volume_id: vol-t57bv5pb
:encrypted_password:

pre-setup

Create a ssh keypair.

$ ssh-keygen -N "" -f mykeypair
$ mussel.sh ssh_key_pair create --public-key mykeypair.pub
# => ssh-xxx

Create an instance.

$ mussel.sh instance create \
 --hypervisor openvz \
 --cpu-cores 1 \
 --image-id wmi-lbnode1d64 \
 --memory-size 256 \
 --ssh-key-id <*ssh-xxx*>
# => i-xxx
@hansode hansode add "update" to instance.
c732a2d
@axsh-bot
Member

c732a2d failure - wakame-ci/rspec

@axsh-bot
Member

c732a2d success - wakame-ci/rspec

@axsh-bot
Member

c732a2d success - wakame-ci/rpmbuild

@axsh-bot
Member

c732a2d success - wakame-ci/to-s3

@axsh-bot
Member

c732a2d failure - wakame-ci/kvm.smoke2

@axsh-bot
Member

c732a2d failure - wakame-ci/vz.smoke

@axsh-bot
Member

c732a2d failure - wakame-ci/kvm.smoke

@axsh-bot
Member

c732a2d success - wakame-ci/dummy.smoke

@axsh-bot
Member

c732a2d success - wakame-ci/rspec

@axsh-bot
Member

c732a2d success - wakame-ci/rpmbuild

@axsh-bot
Member

c732a2d success - wakame-ci/to-s3

@axsh-bot
Member

c732a2d success - wakame-ci/dummy.smoke

@axsh-bot
Member

c732a2d failure - wakame-ci/kvm.smoke2

@axsh-bot
Member

c732a2d failure - wakame-ci/vz.smoke

@axsh-bot
Member

c732a2d success - wakame-ci/rspec

@axsh-bot
Member

c732a2d failure - wakame-ci/kvm.smoke

@axsh-bot
Member

c732a2d success - wakame-ci/rpmbuild

@axsh-bot
Member

c732a2d success - wakame-ci/to-s3

@axsh-bot
Member

c732a2d success - wakame-ci/dummy.smoke

@axsh-bot
Member

c732a2d success - wakame-ci/kvm.smoke

@axsh-bot
Member

c732a2d failure - wakame-ci/kvm.smoke2

@axsh-bot
Member

c732a2d failure - wakame-ci/vz.smoke

@axsh-bot
Member

c732a2d success - wakame-ci/rspec

@axsh-bot
Member

c732a2d success - wakame-ci/rpmbuild

@axsh-bot
Member

c732a2d success - wakame-ci/to-s3

@axsh-bot
Member

c732a2d success - wakame-ci/dummy.smoke

@axsh-bot
Member

c732a2d failure - wakame-ci/kvm.smoke2

@axsh-bot
Member

c732a2d success - wakame-ci/kvm.smoke

@axsh-bot
Member

c732a2d success - wakame-ci/vz.smoke

@axsh-bot
Member

c732a2d failure - wakame-ci/rpmbuild

@axsh-bot
Member

c732a2d success - wakame-ci/rpmbuild

@axsh-bot
Member

c732a2d success - wakame-ci/to-s3

@axsh-bot
Member

c732a2d failure - wakame-ci/kvm.smoke2

@axsh-bot
Member

c732a2d success - wakame-ci/dummy.smoke

@axsh-bot
Member

c732a2d failure - wakame-ci/kvm.smoke

@axsh-bot
Member

c732a2d success - wakame-ci/vz.smoke

@Metallion
Member

Why was kvm.smoke red?

@axsh-bot
Member

c732a2d success - wakame-ci/rspec

@hansode
Member
hansode commented Apr 20, 2015

It looks io load on the worker host. I started same test scenario.

@axsh-bot
Member

c732a2d success - wakame-ci/rpmbuild

@axsh-bot
Member

c732a2d success - wakame-ci/to-s3

@axsh-bot
Member

c732a2d failure - wakame-ci/lxc.smoke

@axsh-bot
Member

c732a2d success - wakame-ci/kvm.smoke

@axsh-bot
Member

c732a2d failure - wakame-ci/kvm.smoke2

@axsh-bot
Member

c732a2d failure - wakame-ci/dummy.smoke

@axsh-bot
Member

c732a2d success - wakame-ci/rspec

@axsh-bot
Member

c732a2d success - wakame-ci/rpmbuild

@axsh-bot
Member

c732a2d success - wakame-ci/to-s3

@axsh-bot
Member

c732a2d success - wakame-ci/dummy.smoke

@axsh-bot
Member

c732a2d failure - wakame-ci/lxc.smoke

@axsh-bot
Member

c732a2d success - wakame-ci/vz.smoke

@axsh-bot
Member

c732a2d failure - wakame-ci/kvm.smoke2

@axsh-bot
Member

c732a2d success - wakame-ci/kvm.smoke

@axsh-bot
Member

c732a2d success - wakame-ci/vz.smoke

@Metallion
Member

Dummy.smoke failed once this time. What was the problem?

@hansode
Member
hansode commented Apr 22, 2015

It looks io load problem.
Sometimes some testing run on same beremetal.

@Metallion
Member

I see. We should do something about those IO issues but for now this looks ok. +1

lxc.smoke and kvm.smoke2 are currently considered unstable and are allowed to fail.

@Metallion Metallion merged commit 18a94db into master Apr 22, 2015

6 of 8 checks passed

wakame-ci/kvm.smoke2 The build was failure on wakame-ci #17929 (c732a2d4).
wakame-ci/lxc.smoke The build was failure on wakame-ci #17927 (c732a2d4).
wakame-ci/dummy.smoke The build was success on wakame-ci #17926 (c732a2d4).
wakame-ci/kvm.smoke The build was success on wakame-ci #17930 (c732a2d4).
wakame-ci/rpmbuild The build was success on wakame-ci #17918 (c732a2d4).
wakame-ci/rspec The build was success on wakame-ci #17916 (c732a2d4).
wakame-ci/to-s3 The build was success on wakame-ci #17920 (c732a2d4).
wakame-ci/vz.smoke The build was success on wakame-ci #17931 (c732a2d4).
@Metallion Metallion deleted the feature-mussel-instance-update-task branch Apr 22, 2015
@hansode hansode self-assigned this Apr 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment