Some answers to your specific questions:
- If the tacker container exited, then there is an issue with the tacker setup and I would not expect the “tacker vnf-create” step to work.
- The nfv-orchestration endpoint is created in the process of start.sh in the container: see https://git.opnfv.org/models/tree/build/tacker/start.sh line 55.
- Note that you can dump the tacker container log with “sudo docker logs tacker” or follow it (tail) with “sudo docker logs -f tacker”. Do that and you will likely see the issue that led to the endpoint not being created. If the container is running, you can use “sudo docker exec -it /bin/bash” to poke around in the container, e.g. to debug using the openstack CLI etc from within the container.
- I have no idea where “fatal: /home/ubuntu/auto/keystonercv3: '/home/ubuntu/auto/keystonercv3' is outside repository” comes from. This looks like something Fuel is complaining about.
- “internal endpoint for nfv-orchestration service in RegionOne region not found” is a bug, but one due to a persistent problem with OPNFV … in that the different distros use inconsistent naming for key common attributes such as the region name. In Apex, this is “regionOne” and the case difference matters. But I will try to find a way for the test to be more intelligent, i.e. discover the actual value and use it. I’ve done this in the past, I just need to recall where and how.
For reference, For Apex the whole test process including the following is posted at https://etherpad.opnfv.org/p/bryan-models:
- Test setup
- Tacker container logs
- Test start
- Output of CLI calls for openstack user, endpoint, and service
- Test stop
- Test clean
- Output of CLI calls for openstack user, endpoint, and service (verifying cleanup)
Note you will still see some reports of “Neutron CLI is deprecated….” Since it’s taking time to convert all the CLI calls to use the openstack client. But they work.
Thanks,
Bryan Sullivan | AT&T
From: [email protected] [mailto:[email protected]]
Sent: Tuesday, January 09, 2018 12:43 PM
To: SULLIVAN, BRYAN L (BRYAN L) <[email protected]>; Tina Tsou <[email protected]>; [email protected]; UKASICK, AIMEE L (AIMEE L) <[email protected]>
Cc: '[email protected]' <[email protected]>
Subject: RE: [Models][Auto] vHello_Tacker updated for Euphrates
Thanks Bryan for the changes.
I tried the latest Models Project in ARM Pod (with OPNFV) and found that the setup for vHello_Tacker.sh indicates that it succeeded, but the session logs (as attached) show some issues. I did not see the logic to create an endpoint nfv-orchestration anymore. The subsequent vHello_Tacker.sh start execution fails to find this endpoint during “tacker vnf-create” processing. Is this endpoint not needed anymore with this change ? The logs are given below.
The docker status also shows as exited.
(venv) ubuntu@localhost:/opt/tacker$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
982486b7290c blsaws/models-tacker:latest "/bin/bash /opt/ta..." About an hour ago Exited (1) About an hour ago tacker
~/auto/models/tests$ ./vHello_Tacker.sh setup /home/ubuntu/auto/keystonercv3
setup:165 (Tue Jan 9 18:28:11 UTC 2018) run tacker-setup.sh
…snip…
create_container:99 (Tue Jan 9 18:28:23 UTC 2018) Start tacker container with image blsaws/models-tacker:latest
Missing parameter(s):
Set a username with --os-username, OS_USERNAME, or auth.username
Set an authentication URL, with --os-auth-url, OS_AUTH_URL or auth.auth_url
Set a scope, such as a project or domain, set a project scope with --os-project-name, OS_PROJECT_NAME or auth.project_name, set a domain scope with --os-domain-name, OS_DOMAIN_NAME or auth.domain_name
982486b7290c9338979d216dbb8b285431f275028754e75605dbef160501a21e
pass:40 (Tue Jan 9 18:28:26 UTC 2018) Hooray!
…snip…
Create virtualenv
New python executable in /home/ubuntu/venv/bin/python
..snip…
fatal: /home/ubuntu/auto/keystonercv3: '/home/ubuntu/auto/keystonercv3' is outside repository
…snip..
setup:232 (Tue Jan 9 18:32:25 UTC 2018) Add router interface for vnf_private network
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Added interface f2a6a8b3-bb70-4587-958b-3903629973b9 to router vnf_private_router.
pass:100 (Tue Jan 9 18:32:38 UTC 2018) Hooray!
pass:103 (Tue Jan 9 18:32:38 UTC 2018) Test Duration = 267 seconds
ubuntu@localhost: ~/auto/models/testsubuntu@localhost:~/auto/models/tests$ source ~/venv/bin/activate
(venv) ]0;ubuntu@localhost: ~/auto/models/testsubuntu@localhost:~/auto/models/tests$ bash vHello_Tacker.sh start
copy_blueprint:238 (Tue Jan 9 18:43:11 UTC 2018) copy test script to /opt/tacker
copy_blueprint:241 (Tue Jan 9 18:43:11 UTC 2018) reset blueprints folder
copy_blueprint:247 (Tue Jan 9 18:43:11 UTC 2018) copy tosca-vnfd-hello-world-tacker to blueprints folder
start:255 (Tue Jan 9 18:43:11 UTC 2018) setup OpenStack CLI environment
start:258 (Tue Jan 9 18:43:11 UTC 2018) Create Nova key pair
Generating public/private rsa key pair.
Your identification has been saved in /opt/tacker/vHello.
Your public key has been saved in /opt/tacker/vHello.pub.
The key fingerprint is:
SHA256:Dsb4XhltfFrri54PGHy94bCmuyPd9v+iiiP7dw6sBPM ubuntu@vHello
The key's randomart image is:
+---[RSA 2048]----+
| |
| |
| |
| o . o . |
| . * S * = |
| o * O B + |
| ..E.B + |
| .oo+=+*. . |
| o=BO=*B+.o.|
+----[SHA256]-----+
Key pair 'vHello' already exists. (HTTP 409) (Request-ID: req-d86d9a31-5f6a-41a9-aa56-3ee9f80b51c6)
vHello_Tacker.sh test assertion passed: models-nova-001 (Keypair creation)
start:265 (Tue Jan 9 18:43:16 UTC 2018) Inject public key into blueprint
start:269 (Tue Jan 9 18:43:16 UTC 2018) Get external network for Floating IP allocations
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
start:272 (Tue Jan 9 18:43:40 UTC 2018) create VNFD
internal endpoint for nfv-orchestration service in RegionOne region not found
vHello_Tacker.sh test assertion failed: models-tacker-002 (VNFD creation)
fail:108 (Tue Jan 9 18:43:43 UTC 2018) Test Failed!
fail:112 (Tue Jan 9 18:43:43 UTC 2018) Test Duration = 0 seconds
(venv) ]0;ubuntu@localhost: ~/auto/models/testsubuntu@localhost:~/auto/models/tests$
Regards,
Pramod
From: SULLIVAN, BRYAN L (BRYAN L) [mailto:[email protected]]
Sent: Tuesday, January 9, 2018 11:50 AM
To: Pramod Sudrik (Product Engineering Service) <[email protected]>; Tina Tsou <[email protected]>; Eric DMaye (Product Engineering Service) <[email protected]>; UKASICK, AIMEE L (AIMEE L) <[email protected]>
Cc: '[email protected]' <[email protected]>
Subject: [Models][Auto] vHello_Tacker updated for Euphrates
** This mail has been sent from an external source **
Pramod,
Bringing this offline discussion to the list…
The Models vHello_Tacker test is now updated/merged and working for Euphrates (verified for Apex virtual install). There were a variety of API/CLI and other changes in OpenStack Ocata, and I took the opportunity to refactor the test. It now uses a docker container for Tacker, that is pre-built and downloaded from docker hub (https://hub.docker.com/r/blsaws/models-tacker/). The test overall runs much faster. The comments at the start of the script describe the updated process. The main difference is that the OpenStack commands require activation of a virtual env that is installed in the setup step.
Thanks,
Bryan Sullivan | AT&T
_______________________________________________ opnfv-tech-discuss mailing list [email protected] https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss
