Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@nailgun ~]# fuel --f
- api: '1.0'
- astute_sha: 1f87a9b9a47de7498b4061d15a8c7fb9435709d5
- auth_required: true
- build_id: 2015-02-15_22-54-44
- build_number: '126'
- feature_groups:
- - mirantis
- fuellib_sha: 7f8d4382abfcd4338964182ebfea1d539f963e66
- fuelmain_sha: 2054229e275d08898b5d079a6625ffcc79ae23b8
- nailgun_sha: 1e3a40dd8a17abe1d38f42da1e0dc1a6d4572666
- ostf_sha: f9c37d0876141e1550eb4e703a8e500cd463282f
- production: docker
- python-fuelclient_sha: 61431ed16fc00039a269424bdbaa410277eff609
- release: '6.1'
- release_versions:
- 2014.2-6.1:
- VERSION:
- api: '1.0'
- astute_sha: 1f87a9b9a47de7498b4061d15a8c7fb9435709d5
- build_id: 2015-02-15_22-54-44
- build_number: '126'
- feature_groups:
- - mirantis
- fuellib_sha: 7f8d4382abfcd4338964182ebfea1d539f963e66
- fuelmain_sha: 2054229e275d08898b5d079a6625ffcc79ae23b8
- nailgun_sha: 1e3a40dd8a17abe1d38f42da1e0dc1a6d4572666
- ostf_sha: f9c37d0876141e1550eb4e703a8e500cd463282f
- production: docker
- python-fuelclient_sha: 61431ed16fc00039a269424bdbaa410277eff609
- release: '6.1'
- root@node-1:~# python test.py
- Usage: test.py <image_id> <flavor_id> <network_id> <floating_ip_pool>
- root@node-1:~# glance image-list
- +--------------------------------------+--------+-------------+------------------+----------+--------+
- | ID | Name | Disk Format | Container Format | Size | Status |
- +--------------------------------------+--------+-------------+------------------+----------+--------+
- | 1bd60f49-ce5a-46ca-961e-5a90eef00d1a | TestVM | qcow2 | bare | 13167616 | active |
- +--------------------------------------+--------+-------------+------------------+----------+--------+
- root@node-1:~# nova flavor-list
- +--------------------------------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+
- | ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
- +--------------------------------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+
- | 01f21e8f-2b96-4f0d-b171-09aef6dc4aca | m1.micro | 64 | 0 | 0 | | 1 | 1.0 | True |
- | 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |
- | 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |
- | 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |
- | 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |
- | 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |
- +--------------------------------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+
- root@node-1:~# nova net-list
- +--------------------------------------+-----------+------+
- | ID | Label | CIDR |
- +--------------------------------------+-----------+------+
- | 1f2d9f05-e9da-4319-bb54-771e58409794 | net04_ext | None |
- | 0b0e7f21-1768-4a38-8339-7d078a54b3dd | net04 | None |
- +--------------------------------------+-----------+------+
- root@node-1:~# nova floating-ip-pool-list
- +-----------+
- | name |
- +-----------+
- | net04_ext |
- +-----------+
- root@node-1:~# python test.py 1bd60f49-ce5a-46ca-961e-5a90eef00d1a 1 0b0e7f21-1768-4a38-8339-7d078a54b3dd net04_ext
- Created client...
- Created floating ip: fe6b3870-860c-4b55-b2f3-9a3cd30b2d4c
- Created instance: 84aba0e1-f6f8-48fd-87a3-2704cf6aedcd - demo
- waiting for instance to boot...
- waiting for instance to boot...
- waiting for instance to boot...
- waiting for instance to boot...
- Added floating ip...
- root@node-1:~#
- root@node-1:~# nova list
- +--------------------------------------+------+--------+------------+-------------+------------------------------------+
- | ID | Name | Status | Task State | Power State | Networks |
- +--------------------------------------+------+--------+------------+-------------+------------------------------------+
- | 84aba0e1-f6f8-48fd-87a3-2704cf6aedcd | demo | ACTIVE | - | Running | net04=192.168.111.4, 10.108.21.137 |
- +--------------------------------------+------+--------+------------+-------------+------------------------------------+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement