ansible.vault not working anymore?

Visto 1.355 veces
Saltar al primer mensaje no leído

vid.j...@gmail.com

no leída,
14 ago 2018, 9:35:2514/8/18
a Ansible Project
Had  a functional ansible-vault setup up until today.

With each run now I get the following:

ERROR! Unexpected Exception, this is probably a bug: from_buffer() cannot return the address of the raw string within a str or unicode or bytearray object

This is a known bug and I have tried reinstalling the cryptography library through pip, but it did not solve the problem.


Anyone knows of other solutions or are there any fixes planned for this?

Dick Visser

no leída,
14 ago 2018, 11:56:1714/8/18
a ansible...@googlegroups.com
On 14 August 2018 at 15:35, <vid.j...@gmail.com> wrote:
>
> Had a functional ansible-vault setup up until today.

Without going into details - what changed on your system today?
Because logic dictates that ansible-vault (or any other tool, for that
matter) doesn't stop working if nothing changed.


Dick

Matt Martz

no leída,
14 ago 2018, 12:01:5914/8/18
a ansible...@googlegroups.com
Having just looked into this issue as it related to paramiko, the problem is with having an outdated version of python cryptography installed.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwP70Eh3nmEu9%3D%3DS_3CczLhc5AEWdmaiA%3Dj-u-rOF_jxMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Matt Martz
@sivel
sivel.net

Vid Jelen

no leída,
14 ago 2018, 12:24:1514/8/18
a ansible...@googlegroups.com
My current python cryptography version is 2.3 & I've also upgraded pip itself via pip to 18.0

Ansible version is 2.7.0

I have tried reinstalling python cryptography several times with no different results than the same error message.
The paramiko package also crossed my mind, so I updated that one as well. The issue still persists...

The only thing that changed today was a package update with apt-get update && upgrade (running Linux Mint)

You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/MXso_HZ_gzU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.

To post to this group, send email to ansible...@googlegroups.com.

Dick Visser

no leída,
14 ago 2018, 13:09:3514/8/18
a ansible...@googlegroups.com
Hmm, that sounds like a somewhat volatile environment.
In any case, if somethings "suddenly" stops working, I would suggest
to find out what exactly changed that caused it to stop working.
Carpet-upgrading involved libraries might fix the issue, but it's not
going to make fault finding easier.
What about reverting the package that came in through apt-get
(interested to know which one)?


Dick
> https://groups.google.com/d/msgid/ansible-project/CA%2Bn_Oc3PkmExtcufgvTSugSaG_c2UZK3UwKAJ-PphU8gv8o%2BwA%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT
T: +31205304488
M: +31622698108
PGP key fingerprint: F575 58C6 62C6 FD5B A9CD 217C 2667 13D4 E6EF 488D

GÉANT Vereniging (Association) is registered with the Chamber of
Commerce in Amsterdam with registration number 40535155 and operates
in the UK as a branch of GÉANT Vereniging. Registered office:
Hoekenrode 3, 1102 BR Amsterdam, The Netherlands. UK branch address:
City House, 126-130 Hills Road, Cambridge CB2 1PQ, UK.


Want to join us? We're hiring: https://www.geant.org/jobs

Vid Jelen

no leída,
14 ago 2018, 14:40:0414/8/18
a ansible...@googlegroups.com
I think the upgrade brought in at least 25 updated packages, so it might be a bit messy to revert each & every one :/

But I'll have a go at it and see what I can find from there.




Tony Chia

no leída,
15 ago 2018, 10:57:4415/8/18
a Ansible Project
The current stable ansible version is 2.6.2 according to the github release page https://github.com/ansible/ansible/releases

How did you get Ansible version 2.7.0? is the from the devel branch? 

Tony Chia

no leída,
15 ago 2018, 10:59:2815/8/18
a Ansible Project
I would say a faster way is probably to setup a python virtualenv and see if you can reproduce the issue in the new clean virtual env.
You can find instructions how to setup a python virutal env at https://docs.python-guide.org/dev/virtualenvs/

vid.j...@gmail.com

no leída,
21 ago 2018, 3:53:5921/8/18
a Ansible Project
Tried the python virtualenv and downgrading/upgrading all the possible packages with no success. 

But I finally resolved the issue after mingling with the system packages...
I'm running python 2.7.12 and the issue for me was, that the libs python3-crypto & python3-cffi-backend were installed through the system package manager.

Uninstalling those immediately solved the problem :)
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos