问答详情
源自:-

如何通过命令行创建 Heat 的栈??

GUI会了,但是字符界面不会。

提问者:刻骨铭心_ 2016-06-19 08:15

个回答

  • XhstormR
    2016-06-19 08:36:05
    已采纳

    [root@station140 ~(keystone_admin)]# glance image-list
    +--------------------------------------+------------------+-------------+------------------+------------+--------+
    | ID                                   | Name             | Disk Format | Container Format | Size       | Status |
    +--------------------------------------+------------------+-------------+------------------+------------+--------+
    | 2aad80bf-6fbb-4348-bb20-2c07dbf4f687 | centos5.8_x86_64 | qcow2       | bare             | 1151598592 | active |
    | 2d6bb00d-002f-4675-ba84-73d90fdc1020 | cirros           | qcow2       | bare             | 13147648   | active |
    +--------------------------------------+------------------+-------------+------------------+------------+--------+
    [root@station140 ~(keystone_admin)]# nova network-list
    +--------------------------------------+---------+------+
    | ID                                   | Label   | Cidr |
    +--------------------------------------+---------+------+
    | 68a1d874-e7bd-42e2-9f86-8eb0b0b4b8fd | public  | None |
    | e8e14001-44d9-4ab1-a462-ea621b8a4746 | private | None |
    +--------------------------------------+---------+------+
    [root@station140 ~(keystone_admin)]# heat stack-create -f server.yml  -P ImageID=cirros -P NetID=int mystack     创建栈

    望采纳。