Closed tdovan closed 5 years ago
Hi @tdovan,
It seems like you are trying to create multiple server profiles using single server hardware. Server hardware can have only one profile assigned to it, go through the below link to understand more about the server profile creation.
I hope this will help.
@tdovan, Closing this, as there is no follow up.
hi, it is possible to reopen this case ? I still have the issue with oneview api version 1000 using this simple yml:
@tdovan , Looks like the profile module was not catching the right exception. Use the below branch and let me know if you can create profiles in parallel. https://github.com/HewlettPackard/oneview-ansible/tree/bug_fix/create_profiles_in_parallel
Scenario/Intent
create multiple server in parallel. (just two in fact)
Environment Details
Steps to Reproduce
just run the following yml:
name: Deploy node webservers on RHEL 7.2 servers hosts: all gather_facts: no vars:
tasks:
only add 2 hosts in your inventory
Expected Result
2 server profile created in Synergy
Actual Result
[root@docker-engine-1 dcos-hpe-oneview]# ansible-playbook tan.yml -vvv ansible-playbook 2.4.3.0 config file = /home/tdovan/iac/demo4/dcos-hpe-oneview/ansible.cfg configured module search path = [u'/home/tdovan/iac/demo2/oneview-ansible/library'] ansible python module location = /usr/local/lib/python2.7/site-packages/ansible-2.4.3.0-py2.7.egg/ansible executable location = /usr/local/bin/ansible-playbook python version = 2.7.9 (default, Jan 28 2018, 20:49:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] Using /home/tdovan/iac/demo4/dcos-hpe-oneview/ansible.cfg as config file Parsed /home/tdovan/iac/demo4/dcos-hpe-oneview/hosts inventory source with ini plugin
PLAYBOOK: tan.yml *** 1 plays in tan.yml
PLAY [Deploy node webservers on RHEL 7.2 servers] *** META: ran handlers
TASK [Create server profile with deployment plan Infra-as-Code-RHEL-7.3-BASE-OS] **** task path: /home/tdovan/iac/demo4/dcos-hpe-oneview/tan.yml:25 Sunday 28 January 2018 21:36:12 +0100 (0:00:00.072) 0:00:00.072 **** Using module file /home/tdovan/iac/demo2/oneview-ansible/library/oneview_server_profile.py