GithubHelp home page GithubHelp logo

sonata-nfv / son-install Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 13.0 1.26 MB

The SONATA Service Platform installation scripts

Home Page: http://www.sonata-nfv.eu

License: Apache License 2.0

Shell 45.56% HCL 51.62% Smarty 2.02% Python 0.80%
ansible-playbooks installer nfv nfv-platform sdn sonata

son-install's People

Contributors

arocha7 avatar dang03 avatar mbredel avatar navdeepuniyal avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

son-install's Issues

son-bss wrong gkApiUrl

We have configured the following url:

--gkApiUrl=http://{{ public_ip }}:32001

Should be:

--gkApiUrl=https://{{ public_ip }}/api/v2

Duplicated dict key in destroy/ntp.yml

[WARNING]: While constructing a mapping from /var/lib/jenkins/jobs/son-
install/workspace/destroy/ntp.yml, line 18, column 5, found a duplicate dict
key (when). Using last defined value only.
[WARNING]: While constructing a mapping from /var/lib/jenkins/jobs/son-
install/workspace/destroy/ntp.yml, line 24, column 5, found a duplicate dict
key (when). Using last defined value only.

Databases are not initializated

We got the following error:

D, [2017-04-16 21:45:08#14] DEBUG -- : PG::UndefinedTable: ERROR: relation "requests" does not exist
LINE 5: WHERE a.attrelid = '"requests"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"requests"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum

Solution:
bundle exec rake db:migrate that has to be run

Problems to login to SONATA Service platform

Hi,
When I installed the sonata platform (v 3,0) (previously i had edited the Sonata SP user in roles/sp/defaults/main.yml). Initially, I could login and exit normally, but after installing the son-cli and son-emu in the PC. I couldn't login again to SONATA SP.

What can I do?

Best regards

Sonata demo deployment failed

Received Access forbidden message while deploying network service OpenStack.
Though I could able to establish the connection between Sonata and OpenStack.
Attaching some log of son-sp-infrabstract.
screen shot 2018-04-19 at 18 02 16
screen shot 2018-04-19 at 18 08 35

Cannot install SONATA

Error message:
TASK [GATEKEEPER API - running Docker containers] ******************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Error starting container e767c39d03498f3defb61d1ee311a862bff71cbfbbf29562e0f8986775747f5a: 500 Server Error: Internal Server Error ("Cannot link to a non running container: /son-gtksrv AS /son-gtkapi/son-gtksrv")"}

NO MORE HOSTS LEFT *************************************************************
[WARNING]: Could not create retry file 'son-cmud.retry'. [Errno 2] No
such file or directory: ''

PLAY RECAP *********************************************************************
localhost : ok=47 changed=15 unreachable=0 failed=1

Install SP for 5GTango

Hi,

I am trying to instlal on a fresh Ubuntu 16.04, the following steps:
https://sonata-nfv.github.io/component_installation.

The process to install SP is the same as for version 3.0 ?
If yes, I installed first the packages mentioned at the beginning:

Create tango user

sudo adduser tango
sudo usermod -a -G sudo tango

Packages installation

sudo apt-get install -y software-properties-common
sudo apt-add-repository -y ppa:ansible/ansible
sudo apt-get update
sudo apt-get install -y ansible
sudo apt-get install -y git
sudo apt-get install python3
sudo apt install python3-pip
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
sudo pip3 install docker

Docker-ce

sudo apt-get update
sudo apt-get install
apt-transport-https
ca-certificates
curl
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository
"deb [arch=amd64] https://download.docker.com/linux/ubuntu
$(lsb_release -cs)
stable"
sudo apt-get update
sudo apt-get install docker-ce

Create docker network

sudo docker network create tango

Repository cloning

git clone https://github.com/sonata-nfv/tng-devops.git
cd tng-devops

After that, I encounter the following error:

root@sonata-tango:/home/sonata/son-install# ansible-playbook utils/deploy/sp.yml -e "target=localhost public_ip=10.0.2.15"
Traceback (most recent call last):
File "/usr/bin/ansible-playbook", line 40, in
from ansible.errors import AnsibleError, AnsibleOptionsError, AnsibleParserError
ImportError: No module named 'ansible'

Could you pleas help ?
Thanks !

son-gui and LOGS_URL

This url should be configured in case you have a graylog system conected to SONATA.

The IP address should be different to public_ip. Something like graylog_ip if this exists.

Add new features for version 3.0

Here the list of new services:

  • son-validate
  • son-gtkrtl
  • son-gtklic
  • son-redis
  • functionlifecyclemanagement

Aditional Tasks:

  • Check the configuration of all SP components.

Wrong paths in ansible files

Path prefix lookup('env', 'PWD') == '', thus ansible tries to find files from root instead of repository directory.

roles/docker/tasks/main.yaml, line 10
roles/sp/tasks/main.yaml, line 10, 12, 57

Missing container's exposed ports

Currently this is the status:

IMAGE PORTS
sonatanfv/servicelifecyclemanagement
sonatanfv/pluginmanager
sonatanfv/son-gtkapi 5000/tcp
sonatanfv/son-gtksrv 5300/tcp
sonatanfv/son-yo-gen-bss 1337-1338/tcp, 9000/tcp
sonatanfv/son-monitor-manager 9000/tcp, 9090/tcp, 0.0.0.0:32775->8000/tcp
sonatanfv/son-monitor-prometheus 0.0.0.0:32774->9089/tcp, 0.0.0.0:32773->9090/tcp
sonatanfv/son-monitor-pushgateway 0.0.0.0:32772->9091/tcp
sonatanfv/son-monitor-mysql 0.0.0.0:32771->3306/tcp
sonatanfv/son-monitor-influxdb 8083/tcp, 0.0.0.0:32770->8086/tcp
sonatanfv/son-sp-infrabstract
sonatanfv/son-catalogue-repos 0.0.0.0:32769->4002/tcp
sonatanfv/son-gtkpkg 0.0.0.0:32768->5100/tcp
sonatanfv/son-gui
rabbitmq 4369/tcp, 5671/tcp, 25672/tcp, 0.0.0.0:5672->5672/tcp

Setup public_ip before install

Hi Sonatas,

I'm trying to setup a working sonata platform with these install script and as I understand there is a "secret" public_ip variable that one should change to the public IP of the host. It would be great if you can include this in the README.md.

Some info:
Master branch, commit a97ad93
Files:
install/group_vars/all, install/roles/docker/files/group_vars.all
Ansible command:
ansible-playbook son-cmud.yml -e "target=localhost env=demo operation=install service=all"

Regards,
Janos

Changes don't remain

Good day!
Would you like to help us..
We installed full sonata-package (// INSTALL full SP) and have got access to the web interface(dashboard). But when we сhanged some settings in sonata dashboard and tried to to apply this settings, we pushed "Save" button, but changes weren't applied.
We tried several times - the same result.We used Github-login and password.
May be ..the problem is that all dependences weren't established? And how to learn the list of all dependences (the version of packages)?
Thanks a lot
Best regards,
Alex

Deprecation warning command sudo

Here are the list of files:
./deploy-terraform.yml
./deploy-pgsql.yml
./deploy-jenkins.yml
./destroy-pgsql.yml

[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and
make sure become_method is 'sudo' (default).
This feature will be removed in a
future release. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.

son-bss https support

To support https in the bss module we should add this options in the command to start the container:

--hostname=<dns_name>
--protocol=https

For the dns_url we should create a global variable with this entry.

Also we need to create the following volume:

/etc/ssl/private/sonata/:/usr/local/yeoman/SonataBSS/app/certs/

And verify if the certs for SONATA are available in the folder /etc/ssl/private/sonata/

son-gtksrv is not configured to write logs in the right folder

son-gtksrv have a volume created to write the logs but is not configured in the right folder

    volumes:
      - /home/{{ vm_user }}/son-gkeeper/son-gtksrv/:/opt/sonata/son-gktsrv
      - /var/log/sonata:/var/log/son-gtksrv

Also/home/{{ vm_user }}/son-gkeeper/son-gtksrv/:/opt/sonata/son-gktsrv is not needed

is it possible to install sonata without openstack

hiya

I have a very general question, I hope this is an OK place to ask

we're looking for a solution that would allow to orchestrate several k8s-based clusters; there is no VM-based cluster in the landscape, and so I was curious to know if it's possible to use sonata in such a use case - given that the docs that I have seen suggest otherwise (that openstack is mandatory)

I am referring specifically to this quote that I found in https://sonata-nfv.github.io/quickguide

Setup
To setup SONATA you must install the three major components of SONATA and OpenStack in the order shown is the following bulleted list and as highlighted in the following diagram.

thanks in advance for your insights

son-gtksrv populate the database before start son-gtksrv container

We should use the following command:

docker run -i --net=sonata -e DATABASE_HOST={{ public_ip }} -e MQSERVER=amqp://guest:guest@{{ public_ip }}:5672 -e RACK_ENV=integration -e CATALOGUES_URL=http://{{ public_ip }}:4002/catalogues/api/v2  -e DATABASE_PORT=5432 -e POSTGRES_PASSWORD=sonata -e POSTGRES_USER=sonatatest --rm=true  sonatanfv/son-gtksrv bundle exec rake db:migrate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.