Unable to create service chain instance with GBP client

Bug #1526086 reported by Gary Marchiny on 2015-12-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Group Based Policy Client
Undecided
Unassigned

Bug Description

When attempting to create a service chain instance using the GBP client, I get the following error message:

ubuntu@foo$ gbp servicechain-instance-create --service-chain-spec svc_chain_spec --provider-ptg app_ptg --consumer-ptg user_ptg testInstance
Unrecognized attribute(s) 'provider_ptg, servicechain_spec, consumer_ptg'

To reproduce, install devstack kilo release (using these instructions https://github.com/group-policy/gbp-devstack). Next, use Heat to create a test stack of resources that includes policy groups (see attached Heat templates). Finally, attempt to run the command mentioned above to create a service chain instance.

These seem to be the correct translations of these flags:
"--provider-ptg" (incorrect) -> "--provider_ptg_id" (correct)
"--consumer-ptg" (incorrect) -> "--consumer_ptg_id" (correct)
"--service-chain-spec" (incorrect) -> "--servicechain_specs" (correct)

These corrections seem to work, but I can't seem to get the "--servicechain_specs" one to work. I get "Invalid input for servicechain_specs. Reason: ec6fb76f-75c1-449b-9349-754d1092d036 is not a list." when trying:

ubuntu@foo:~$ gbp servicechain-instance-create foo3 --consumer_ptg_id 69784156-9c8d-4a42-a126-b37775d41f4c --provider_ptg_id 78f43448-4971-45a2-8ee7-d8d1b7856361 --servicechain_specs ec6fb76f-75c1-449b-9349-754d1092d036

Surrounding the service chain spec UUID with quotes and / or brackets does not help.

Gary Marchiny (gary-marchiny) wrote :
Gary Marchiny (gary-marchiny) wrote :
affects: neutron → group-based-policy-client
description: updated
description: updated
description: updated
Sumit Naiksatam (snaiksat) wrote :

Thanks for trying this out. However, we do not currently support creating a service chain instance explicitly. The service chain instance is created implicitly when a consumer/provider relationship is created between two PTGs via a Policy-Rule-Set that has a redirect action with value pointing to a service chain spec.

As such, we should have not have exposed the create service chain instance opertaion via the CLI.

Changed in group-based-policy-client:
status: New → Triaged
Gary Marchiny (gary-marchiny) wrote :

Hi Sumit,

That makes sense. The reason I tried to do so explicitly was because the service chain instance was not created when I created the consumer / provider relationship between the two groups (using the templates I attached to this bug). Is that also broken?

Thanks!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers