Revision 720f56c8

b/lib/cmdlib.py
8000 8000
                     mode=constants.IALLOCATOR_MODE_ALLOC,
8001 8001
                     name=self.op.instance_name,
8002 8002
                     disk_template=self.op.disk_template,
8003
                     tags=[],
8003
                     tags=self.op.tags,
8004 8004
                     os=self.op.os_type,
8005 8005
                     vcpus=self.be_full[constants.BE_VCPUS],
8006 8006
                     memory=self.be_full[constants.BE_MEMORY],
......
8236 8236
                                  ",".join(enabled_hvs)),
8237 8237
                                 errors.ECODE_STATE)
8238 8238

  
8239
    # Check tag validity
8240
    for tag in self.op.tags:
8241
      objects.TaggableObject.ValidateTag(tag)
8242

  
8239 8243
    # check hypervisor parameter syntax (locally)
8240 8244
    utils.ForceDictType(self.op.hvparams, constants.HVS_PARAMETER_TYPES)
8241 8245
    filled_hvp = cluster.SimpleFillHV(self.op.hypervisor, self.op.os_type,
......
8581 8585
                            hvparams=self.op.hvparams,
8582 8586
                            hypervisor=self.op.hypervisor,
8583 8587
                            osparams=self.op.osparams,
8588
                            tags=self.op.tags,
8584 8589
                            )
8585 8590

  
8586 8591
    if self.adopt_disks:
b/lib/opcodes.py
965 965
    ("src_node", None, ht.TMaybeString, "Source node for import"),
966 966
    ("src_path", None, ht.TMaybeString, "Source directory for import"),
967 967
    ("start", True, ht.TBool, "Whether to start instance after creation"),
968
    ("tags", ht.EmptyList, ht.TListOf(ht.TNonEmptyString), "Instance tags"),
968 969
    ]
969 970

  
970 971

  

Also available in: Unified diff