New version of OpenWISP Controller and OpenWISP Network Topology

256 views
Skip to first unread message

Federico Capoano

unread,
Jan 17, 2020, 1:23:37 PM1/17/20
to OpenWISP
I just finished releasing the new versions of OpenWISP Controller and OpenWISP Network Topology, available for install through ansible-openwisp2.

This is the last python 2 compatible release, from the next release onwards OpenWISP will work only with python >= 3.6 and django >= 3.0.

We are also near the release of the first django-freeradius and openwisp-radius versions, these two modules have been around for quite some time and I've probably been too conservative in not issuing a release, so from now on I will try to release more often.

I want to take this chance to thanks all the people who are mentoring with us in the Google Code-In program and the awesome students which have been helping us to fix many issues, do maintenance and add some minor features.

After this round of maintenance I will personally focus on adding new features to OpenWISP.

Best regards!
Federico Capoano

Tomás Paredes

unread,
Jan 20, 2020, 7:17:50 AM1/20/20
to OpenWISP
Hi Federico, I would like to know how I can know what version of openwisp I am executing right now and if it is outdated how can I update it without losing my configuration? . From already thank you very much

El viernes, 17 de enero de 2020, 15:23:37 (UTC-3), Federico Capoano escribió:
Acabo de lanzar las nuevas versiones de OpenWISP Controller y OpenWISP Network Topology, disponibles para instalar a través de ansible-openwisp2 .

Esta es la última versión compatible con python 2, a partir de la próxima versión OpenWISP solo funcionará con python> = 3.6 y django> = 3.0.

También estamos cerca del lanzamiento de las primeras versiones de django-freeradius y openwisp-radius , estos dos módulos han existido durante bastante tiempo y probablemente he sido demasiado conservador al no emitir un lanzamiento, por lo que de ahora en adelante intentaré liberar más a menudo.

Quiero aprovechar esta oportunidad para agradecer a todas las personas que nos están asesorando en el programa Google Code-In y a los increíbles estudiantes que nos han estado ayudando a solucionar muchos problemas, realizar tareas de mantenimiento y agregar algunas características menores.

Después de esta ronda de mantenimiento, me enfocaré personalmente en agregar nuevas características a OpenWISP.

¡Atentamente!
Federico Capoano

Federico Capoano

unread,
Jan 21, 2020, 5:40:40 AM1/21/20
to OpenWISP
Hi Thomas,

I suppose you're using only openwisp-controller, right?

Try the following:

sudo -s
cd
/opt/openwisp2
source env
/bin/activate
./manage.py shell_plus


import openwisp_controller
print(openwisp_controller.get_version())


PS: before upgrading, make sure to backup your system.

Federico

Federico Capoano

unread,
Jan 21, 2020, 5:43:40 AM1/21/20
to OpenWISP
Another way which doesn't involve opening the django shell is to check the python packages installed in the python virtual environment:

ls -l /opt/openwisp2/env/lib/<PYTHON-VERSION>/site-packages/ | grep openwisp

where <PYTHON-VERSION> is the python version used, which could be python3.4, python3.5, python3.6 or even python2.7 if running on an old system (in which case we highly suggest to upgrade to a newer system).

This approach has the advantage of showing the versions of several modules.

Federico

Mr Classic

unread,
May 24, 2020, 4:44:33 AM5/24/20
to OpenWISP
Hi Federico, please i found it difficult to install and setup openWISP for production on VPS (amazon AWS) have watch the video on you youtube but i dont understand the tutorial please help.
i love to contribute to the project am not a developrer, please help to install. 

Ajay Tripathi

unread,
May 24, 2020, 11:10:40 AM5/24/20
to OpenWISP
Hello Mr. Classic,

It would be possible for us to help you only if you mention:

1. the problem you've been having while installation.
2. the steps to help us reproduce the problem.
3. the versions of OS & ansible, and ansible script you are using.
4. any other relevant detail about the context of the problem to help us find the reason of the issue.


Best,
Ajay Tripathi

Mr Classic

unread,
May 24, 2020, 11:36:56 AM5/24/20
to OpenWISP
Thanks for your feedback am using window laptop as the local machine and i want to use amazon EC2 as production server 


i have installed ansible on the local machine as mentioned in the installaton  doc on the website 

and i set the HOSTS file with the ip address of the Amazon EC2 instance

and the playbook.yml 


- hosts: openwisp2
  become: "{{ become | default('yes') }}"
  roles:
    - openwisp.openwisp2
  vars:
    openwisp2_default_from_email: "open...@openwisp2.mydomain.com"
then i run 

ansible-playbook -i hosts playbook.yml -u ubuntu -k --become -K
i get this error:

alwayson@DESKTOP-77E91IT:~/openwisp2-ansible-playbook$ ansible-playbook -i hosts playbook.yml -u alwayson -k
SSH password:

PLAY [openwisp2] *******************************************************************************************************

TASK [Gathering Facts] *************************************************************************************************
fatal: [100.25.30.190]: FAILED! => {"msg": "Timeout (12s) waiting for privilege escalation prompt: "}

PLAY RECAP *************************************************************************************************************
100.25.30.190              : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

please help

thanks in advance
regards

Ajay Tripathi

unread,
May 25, 2020, 5:25:47 AM5/25/20
to OpenWISP
Hi,


On Sunday, May 24, 2020 at 9:06:56 PM UTC+5:30, Mr Classic wrote:
fatal: [100.25.30.190]: FAILED! => {"msg": "Timeout (12s) waiting for privilege escalation prompt: "}
This doesn't seem to be a problem with OpenWISP but a problem related to ansible & linux.
My guess at this point would be that you don't need to the `-K` options in the command `ansible-playbook -i hosts playbook.yml -u ubuntu -k --become -K`
where:
-k, --ask-pass        ask for connection password
-K, --ask-become-pass ask for privilege escalation password

If that doesn't help, you may be interested in an ansible tutorial: https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html

My advice would be to make sure you can ping your server using ansible and can do an operation like installing a software using ansible before using the OpenWISP ansible script.


Best,
Ajay

Mr Classic

unread,
May 28, 2020, 1:59:37 AM5/28/20
to OpenWISP

thanks for your help,

everyhing  was fine and installig untill its get 

TASK [openwisp.openwisp2 : Install spatialite] *************************************************************************
FAILED - RETRYING: Install spatialite (1 retries left).

unable to install spatialite

Ajay Tripathi

unread,
May 28, 2020, 9:24:24 AM5/28/20
to OpenWISP
I just installed OpenWISP on a new system yesterday, it worked.

Which OS are you using? I used Debian 10 yesterday and officially:
Debian 10 & Ubuntu 18 are supported.

If you are using a supported OS and it still doesn't work, then I'll be interested in your ansible version (ansible 2.7+ is recommended).


--
Best, 
Ajay Tripathi

Mr Classic

unread,
May 28, 2020, 9:46:36 AM5/28/20
to OpenWISP
Am using ubuntu 20.04 on Windows system, and am installing it on an instance VPS Ubuntu 18.04lts am running ansible latest version ubuntu 20.04 Windows.

And also am trying to install OWUMS OpenWISP user management system) on ubuntu 18.04lts instance on AMAZON EC2
I don't get the installation process.
Please can you help me with installation process thanks for your assistance.

Ajay Tripathi

unread,
May 29, 2020, 7:22:46 AM5/29/20
to OpenWISP
Hi,

On Thu, May 28, 2020 at 7:16 PM Mr Classic <mayor...@gmail.com> wrote:
Am using ubuntu 20.04 on Windows system,

I don't think this should make any difference but at the same time, I have no knowledge of differences of running Ubuntu in windows VM.
 
running ansible latest version ubuntu 20.04 Windows.
 
Hope it's 2.7+ :-)
But since you are running ubuntu 18.04 in which is working as shown here: https://travis-ci.org/github/openwisp/ansible-openwisp2/jobs/692232470
Is it possible for you to provide any other context about your system to help reproduce the problem?
(You may try debian 10 as well)


And also am trying to install OWUMS OpenWISP user management system) on ubuntu 18.04lts instance on AMAZON EC2
I don't get the installation process.
Please can you help me with installation process thanks for your assistance.

Unfortunately, I don't have experience with it either, but do post your question, someone else maybe able to help you.


Best,
Ajay Tripathi
Reply all
Reply to author
Forward
0 new messages