node-create/port-create commands have some REQUIRED arguments, they can be listed with help, but if we cannot pass these during creating, no any validation checking, no any error message.
Optional arguments:
-c <chassis id>, --chassis_id <chassis id> ID of the chassis that this node belongs to [REQUIRED]
-d <driver>, --driver <driver> Driver used to control the node [REQUIRED]
-i <key=value>, --driver_info <key=value> Key/value pairs used by the driver. Can be specified multiple times
-p <key=value>, --properties <key=value> Key/value pairs describing the physical characteristics of the node. This is exported to Nova and used by the scheduler. Can be specified multiple times
-e <key=value>, --extra <key=value> Record arbitrary key/value metadata. Can be specified multiple times
root@ubuntu1:~/1244072/ironic2/ironic#
Optional arguments:
-a <address>, --address <address> MAC Address for this port [REQUIRED]
-n <node id>, --node_id <node id> ID of the node that this port belongs to [REQUIRED]
-e <key=value>, --extra <key=value> Record arbitrary key/value metadata. Can be specified multiple times
root@ubuntu1:~/1244072/ironic2/ironic#
node-create/ port-create commands have some REQUIRED arguments, they can be listed with help, but if we cannot pass these during creating, no any validation checking, no any error message.
root@ubuntu1: ~/1244072/ ironic2/ ironic# ironic help node-create
[- p <key=value>] [-e <key=value>]
usage: ironic node-create [-c <chassis id>] [-d <driver>] [-i <key=value>]
Create a new node.
Optional arguments:
ID of the chassis that this node belongs to [REQUIRED]
Driver used to control the node [REQUIRED]
Key/ value pairs used by the driver. Can be specified
multiple times
Key/ value pairs describing the physical
characterist ics of the node. This is exported to Nova
and used by the scheduler. Can be specified multiple
times
Record arbitrary key/value metadata. Can be specified
multiple times ~/1244072/ ironic2/ ironic#
-c <chassis id>, --chassis_id <chassis id>
-d <driver>, --driver <driver>
-i <key=value>, --driver_info <key=value>
-p <key=value>, --properties <key=value>
-e <key=value>, --extra <key=value>
root@ubuntu1:
root@ubuntu1: ~/1244072/ ironic2/ ironic# ironic help port-create
usage: ironic port-create [-a <address>] [-n <node id>] [-e <key=value>]
Create a new port.
Optional arguments:
MAC Address for this port [REQUIRED]
ID of the node that this port belongs to [REQUIRED]
Record arbitrary key/value metadata. Can be specified
multiple times ~/1244072/ ironic2/ ironic#
-a <address>, --address <address>
-n <node id>, --node_id <node id>
-e <key=value>, --extra <key=value>
root@ubuntu1: