Tacker: The vnf-create --config-file and --config options should be mutually exclusive

Bug #1475785 reported by Bob Haddleton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Low
Bob Haddleton

Bug Description

The tacker vnf-create command has --config-file and --config options which should be mutually exclusive. If the user specifies both a config file with --config-file and a specific configuration with --config, the text that is read in from the config file will be overwritten by the contents of the --config option.

Updating the add_parameter code to make these two options mutually exclusive will prevent this problem.

Tags: tacker
Changed in tacker:
assignee: nobody → Bob Haddleton (bob-haddleton)
status: New → In Progress
description: updated
tags: added: tacker
Revision history for this message
Sridhar Ramaswamy (srics-r) wrote :

Bob, Team:

 I'm wondering why we need to support these two options ? Particularly for a CLI I think we should consider dropping --config.
 The parameter value is limited shell max size. Beyond simple, small sample templates this might actually trip our users.

What do you think ?

Changed in tacker:
importance: Undecided → Low
Revision history for this message
Bob Haddleton (bob-haddleton) wrote :

Sridhar:

I can go either way with this. The same thing applies to the --vnfd argument to vnfd-create, which also has a --vnfd-file argument.

If we look at Heat as a guide, there is no --template option that allows the user to specify the Heat template on the command line, they have to use a file. So it would be reasonable to do the same thing for the vnfd-file

Config may be a little closer to params, which can be specified on the Heat command line. Very simply VNFs might have a small enough set of config changes that would warrant the command line option. But anything more complex will need a file.

So I would vote to remove --config and --vnfd, and make --vnfd-file required.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tackerclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/211232

Revision history for this message
dharmendra (dharmendra-kushwaha) wrote :

This issue already fixed.

Changed in tacker:
status: In Progress → Fix Committed
Changed in tacker:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.