Comments (13)
Hello, 1st it's nice to hear your interest on 'son-install'. I've tried to reproduce the reported issue at our premises but did not face similar behavior. Here is my steps:
- get 'son-install' repo
- run 'son-cmud' in dry mode with settings for both scenarios:
- Openstack VIM
$ ansible-playbook son-cmud.yml -e "ops=create plat=sp pop=ncsrd proj=dem distro=xenial" -v --check - localhost
$ ansible-playbook utils/deploy/sp.yml -e target=localhost -v --check
- get 'son-cli' repo
- re-run 'son-install'
So, let me hear some more details about your deployment, namely:
a) what is the deployment scenario? [localhost/openstack]
b) did you create the hidden vault password for 'sonata' as requested in 'ansible.cfg'?
vault_password_file = ~/.ssh/.vault_pass
from son-install.
Hi arocha7,
Thanks for the quick reply. I think so that sonata is an excellent platform, therefore I am trying to install it in my laptop and I want to test the tool ASAP. For achieving that I follow the next steps:
1 - 2. In the son-install directory I run the command to localhost (development scenario):
ansible-playbook utils/deploy/sp.yml -e target=localhost -v --check
About the questions these are the answers:
a. deployment scenario: localhost
b. Yes.
Now, when I run the command, I have the next output:
... # Previus output
... # Previus output
TASK [sp : debug] ************************************************************************************************************************************************
ok: [localhost] => {
"msg": "##### SP GUI DEPLOYMENT 20180323-1145"
}
TASK [sp : GATEKEEPER GUI - running Docker containers] ***********************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: __init__() got an unexpected keyword argument 'auto_remove'
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n
File \"/tmp/ansible_NpeRsx/ansible_module_docker_container.py\", line 2124, in <module>\n main()\n
File \"/tmp/ansible_NpeRsx/ansible_module_docker_container.py\", line 2119, in main\n cm =
ContainerManager(client)\n File \"/tmp/ansible_NpeRsx/ansible_module_docker_container.py\", line
1759, in __init__\n self.present(state)\n File
\"/tmp/ansible_NpeRsx/ansible_module_docker_container.py\", line 1797, in present\n new_container
= self.container_create(self.parameters.image, self.parameters.create_parameters)\n File
\"/tmp/ansible_NpeRsx/ansible_module_docker_container.py\", line 891, in create_parameters\n
host_config=self._host_config(),\n File \"/tmp/ansible_NpeRsx/ansible_module_docker_container.py\",
line 989, in _host_config\n return self.client.create_host_config(**params)\n File
\"/usr/local/lib/python2.7/dist-packages/docker/api/container.py\", line 587, in create_host_config\n return HostConfig(*args, **kwargs)\nTypeError: __init__() got an unexpected keyword argument
'auto_remove'\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 0}
to retry, use: --limit @/home/tigarto/son-install/utils/deploy/sp.retry
PLAY RECAP *******************************************************************************************************************************************************
localhost : ok=44 changed=7 unreachable=0 failed=1
I attach the log:
3 - 4. The steps 3 and 4 I don't make it becaute the previous error.
Best regards.
from son-install.
It seems that you have run it with "--check". That is only used to verify the playbook sintax and step by step execution but without creating resources. You should run it in normal mode:
$ ansible-playbook utils/deploy/sp.yml -e target=localhost -v
Also make sure you have more that 4GB RAM at your laptop. In the end you'll get two web applications:
- the SP: http://YOUR_LOCALHOST/
- the BSS: http://YOUR_LOCALHOST:25001/
Looking forward to hear from you.
from son-install.
Hi, thack you again for the help.
- My laptop has 8GB RAM.
- I running the command:
$ sudo ansible-playbook utils/deploy/sp.yml -e target=localhost -v
But, now the error is the following:
TASK [sp : MONIT InfluxDB - running Docker containers] ******************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error pulling image sonatanfv/son-monitor-influxdb:dev - 'module' object has no attribute 'get_config_header'"}
to retry, use: --limit @/home/tigarto/son-install/utils/deploy/sp.retry
PLAY RECAP ***************************************************************************************************************************
localhost : ok=44 changed=7 unreachable=0 failed=1
I search in the web and I found in the next link a possible answer? I installed a docker-compose but the error persist. Do you think it's a good idea to reinstall the docker related tools?
Looking forward to hear from you.
from son-install.
Hi, before run the 'sp.yml' playbook to deploy the SONATA SP platform, my suggestion is to previously run a similar playbook to deploy the Docker engine:
$ ansible-playbook utils/deploy/docker.yml -e "target=localhost plat=docker" -vvvv
$ ansible-playbook utils/deploy/sp.yml -e "target=localhost plat=sp" -vvvv
Also use 4 'v' in the CLI to get higher verbosity.
then let me know how it is. Regards
from son-install.
Hi,
Thank you again. I follow the instructions. These are the results:
- Command 1:
sudo ansible-playbook utils/deploy/docker.yml -e "target=localhost plat=docker" -vvvv
Output 1: There were no mistakes. I attach the results in the next log:
output1_deploy_docker.log
- Command 2:
sudo ansible-playbook utils/deploy/sp.yml -e "target=localhost plat=sp" -vvvv
Output 2: There were mistakes. In the next log
output2_deploy_sp.log is the output.
Looking forward to hear from you.
Best regards.
from son-install.
Hi, i don't explanation for this error unless for the fact this is invoking a 4 months old image tagged 'dev'. As a workaroung, my suggestion is:
a) overload the "sp_ver" parameter in the command line, like:
$ ansible-playbook utils/deploy/sp.yml -e "target=localhost plat=sp sp_ver=latest" -v --limit @/home/ubuntu/son-install/utils/deploy/sp.retry
b) change 'sp_ver' in the Role's defaults file to "latest"
$ vi roles/sp/defaults/main.yml
sp_ver: latest
from son-install.
Hello @tigarto seems your PC can't download the image sonatanfv/son-monitor-influxdb
msg": "Error pulling image sonatanfv/son-monitor-influxdb:dev
As you can see in dockerhub, the image is available.
Can you try to pull it directly from your linux console?
docker pull sonatanfv/son-monitor-influxdb:dev
from son-install.
Hi @arocha7 and @felipevicens. Follow the instructions of @felipevicens, i check and i found a problem in that my docker image was sonatanfv/son-monitor-influxdb:3.0. Then, I removed this image and run the command
docker pull sonatanfv/son-monitor-influxdb:dev
Now, I have the image: son-monitor-influxdb:dev.
Next, I don't change the sp_ver to latest beacuse the pull problem is no longer. But now, when i run the command:
sudo ansible-playbook utils/deploy/sp.yml -e "target=localhost plat=sp" -vvv
A new error is showed. Here is the log:
output.log
any other idea?
Looking forward to hear from you.
Best regards.
from son-install.
Hi @arocha7 and @felipevicens, the install was completed, i unistall docker-py (v 1.9.0) and install docker-py (v 1.10.0) using pip.
Why in sonata de version to docker-py is 1.9.0 (https://github.com/sonata-nfv/son-install/search?utf8=%E2%9C%93&q=docker-py&type=)
Is necessary change this in the config files of sonata install from beggining?
Thanks again,
Looking forward to hear from you.
Best regards.
from son-install.
Hi, in fact "docker-py=1.9.0" was a wrong fix that comes from 'Ubuntu 14.04' support due to the usage of docker-compose 1.8.0 at that time. In the next couple of days it will be removed on the upstream release.
Now you are ready to connect your SP to an Openstack VIM (actually the only supported VIM). If this is the case, let us know your evolution steps.
All the best
from son-install.
Hi,
Thank you very much to all. Your help was very valuable. The next step is start with the tutorials. I hope enjoy it.
All the best.
from son-install.
Thanks @tigarto for your feedback. I'm closing this issue since your issue was fixed.
from son-install.
Related Issues (20)
- SP2SP: Shared catalogues configuration bewteen two SP HOT 1
- Add new features for version 3.0 HOT 1
- Missing restart policy for son-postgres HOT 1
- Wrong paths in ansible files
- Sonata demo deployment failed HOT 10
- Install SP for 5GTango HOT 17
- is it possible to install sonata without openstack
- son-bss wrong gkApiUrl HOT 1
- son-bss https support
- son-bss Disable userManagement and licenseManagement HOT 1
- son-bss is not configured to write logs in the right folder HOT 1
- son-gtkpkg is not pointing to new catalogues url HOT 1
- son-gtkpkg is not configured to write logs in the right folder HOT 1
- Change the deprecated option --link by --net and --network-alias in all playbooks HOT 1
- Deploy the keycloak server before databases HOT 1
- son-gtksrv populate the database before start son-gtksrv container
- son-gtksrv is not pointing to new catalogues url HOT 1
- son-gtksrv is not configured to write logs in the right folder HOT 1
- son-gtkfnct is not pointing to new catalogues url HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from son-install.