----- Original Message -----
Hi Javier,
It looks like I posted too quickly about having all of the updates...
I was
missing five updates, and one included the python-cffi package.
I just updated the packages to include:
Updated:
pyOpenSSL.noarch 0:0.15.1-1.el7 python-cffi.x86_64 0:1.1.2-3.el7
python-pyasn1.noarch 0:0.1.8-2.el7 tzdata.noarch 0:2016a-1.el7
tzdata-java.noarch 0:2016a-1.el7
After that, I reran your script, and it appears to work. I received
[root@slacker2 nova(keystone_admin)]# python test.py
6b:f4:36:18:bc:d2:47:f2:d8:7b:10:39:eb:04:d6:3f
I tried the keypair add command after updating, and it didn't
work.
Then, I rebooted, and now it looks like it works!
I guess it must have been a not updated package!
Aha! That was it. Seeing that the test script errored out in a cffi call, my next question
was going to be a check in those packages. The latest python-cffi package is included in
the RDO Liberty repo, so maybe you didn't run yum update after installing the
rdo-release RPM. That's something to fix in the documentation, I'll take note of
that.
I'm glad it worked for you.
Regards,
Javier
Thank you!
Barbara
On Wed, Feb 10, 2016 at 12:33 PM, Barbara Pilbin <
barbara.pilbin(a)gmail.com >
wrote:
>
Hi Javier,
>
> Awesome - Well, I hope. It didn't work.
> I got this back:
> [root@slacker2 nova(keystone_admin)]# python test.py
> _init_cffi_1_0_external_module
> None
> Does that mean something to you?
> Thanks,
> Barbara
> On Wed, Feb 10, 2016 at 12:17 PM, Javier Pena <
javier.pena(a)redhat.com >
> wrote:
> > ----- Original Message -----
>
> > > > On Wed, Feb 10, 2016 at 11:40 AM, Javier Pena <
javier.pena(a)redhat.com
> > > > >
> >
>
> > > > wrote:
> >
>
> >
> > ----- Original Message -----
>
> > > >
> >
>
> > > > > > Hi,
> >
>
> > > >
> >
>
> > > > > > I am a new list member, and I was trying to follow up with
the
> > > > > > thread
> >
>
> > > > > > that
> >
>
> > > >
> >
>
> > > > > > John started concerning the keypair-add command failing.
> >
>
> > > >
> >
>
> > > > > > I, too, receive the same failure message:
> >
>
> > > >
> >
>
> > > > > > [root@myhostname ~(keystone_admin)]# nova keypair-add
--pub_key
> >
>
> > > > > > cloud.key.pub
> >
>
> > > >
> >
>
> > > > > > cloudkey
> >
>
> > > >
> >
>
> > > > > > ERROR (BadRequest): Keypair data is invalid: failed to
generate
> >
>
> > > > > > fingerprint
> >
>
> > > >
> >
>
> > > > > > (HTTP 400) (Request-ID:
req-ac7961b3-b05e-40f8-a908-d8de7d4c36f1)
> >
>
> > > >
> >
>
> > > > > > I did see that installed the system using the packstack
--allinone
> >
>
> > > > > > command,
> >
>
> > > >
> >
>
> > > > > > but I had forgotten to set the hostname. I have now done
that, but
> > > > > > I
> > > > > > am
> >
>
> > > >
> >
>
> > > > > > unable to find any other place that might be causing the
problem.
> >
>
> > > >
> >
>
> > > > > > I believe I have followed the entire thread on the rdo-list,
and I
> > > > > > am
> > > > > > not
> >
>
> > > >
> >
>
> > > > > > seeing a resolution. Does anyone know if or how the problem
was
> > > > > > solved?
> >
>
> > > >
> >
>
> >
> > Hi Barbara,
>
> > > >
> >
>
> > > > > I have just tried to reproduce this issue, with no success. Since
we
> > > > > did
> >
>
> > > > > not
> >
>
> > > > > manage to find the root cause before, let's step back and try
to
> > > > > follow
> > > > > the
> >
>
> > > > > same steps:
> >
>
> > > >
> >
>
> > > > > - Which OS and RDO version did you use? (in my case, CentOS 7
with
> > > > > all
> >
>
> > > > > updates and RDO Liberty)
> >
>
> > > >
> >
>
> > > > > - Which command did you use to generate the SSH key? (in my
case,
> >
>
> > > > > ssh-keygen
> >
>
> > > > > -t rsa)
> >
>
> > > >
> >
>
> > > > > If the SSH key you generated is a test one, could you upload the
> > > > > contents
> >
>
> > > > > of
> >
>
> > > > > cloud.key.pub somewhere, e.g.
http://fpaste.org ? All we could
find
> > > > > was
> >
>
> > > > > that
> >
>
> > > > > Nova did not like the public key, but we couldn't find out
why.
> >
>
> > > >
> >
>
> > > > > Thanks,
> >
>
> > > >
> >
>
> > > > > Javier
> >
>
> > > >
> >
>
> > > > > > Thank you very much for your time,
> >
>
> > > >
> >
>
> >
> > > Barbara
>
> >
> >
To unsubscribe:
rdo-list-unsubscribe(a)redhat.com
>
> > > >
> >
>
> > > > Okay,
> >
>
> > > > I sure will try to recreate this. I was following the instructions on
> > > > the
> > > > RDO
> >
>
> > > > website as best as I could.
> >
>
> > > > I am installing on CentOS7 with all of the updates.
> >
>
> > > > yum install -y
https://www.rdoproject.org/repos/rdo-release.rpm
> >
>
> > > > yum install -y openstack-packstack
> >
>
> > > > packstack --allinone --os-neutron-install=y --provision-demo=n
> >
>
> > > > (Note: the instructions say to use "packstack --allinone
> >
>
> > > > --os-quantum-install=y --provision-demo=n
> >
>
> > > > --provision-all-in-one-ovs-bridge=n").
> >
>
> > > > I couldn't get that whole command to work in several different
tries.
> >
>
> > > After that, I have gone through basic commands to add
two networks and
> > > two
>
> > > subnets as well as add a secgroup. I just needed to get a keypair to
> > > boot
>
> > > and later login to an virtual instance.
>
> > > When I was reading the previous mailing list entries,
one person
> > > suggested
>
> > > that localhost was the problem. On this installation attempt (done this
> > > a
>
> > > bunch of times now), I did forget to set the hostname. I have set the
>
> > > hostname now, and I have rebooted several times.
>
> > > Here are the commands that I have tried to make the
keypairs:
>
> > > nova keypair-add key5 > /root/key5.pem
>
> > > ssh-keygen -t rsa -f cloud.key -N ''
>
> > > nova keypair-add --pub_key cloud.key.pub cloudkey
>
> > > and, I just tried again to get the output:
>
> > > [root@slacker2 nova(keystone_admin)]# ssh-keygen -t
rsa -f test2.key -N
> > > ''
>
> > > Generating public/private rsa key pair.
>
> > > Your identification has been saved in test2.key.
>
> > > Your public key has been saved in test2.key.pub.
>
> > > The key fingerprint is:
>
> > > 6b:f4:36:18:bc:d2:47:f2:d8:7b:10:39:eb:04:d6:3f root(a)slacker2.net
>
> > > The key's randomart image is:
>
> > > +--[ RSA 2048]----+
>
> > > | |
>
> > > | |
>
> > > | . . |
>
> > > | .o = |
>
> > > | .S..= |
>
> > > | o %+ E |
>
> > > | . BoB. . |
>
> > > | o o.o. |
>
> > > | .. |
>
> > > +-----------------+
>
> > > [root@slacker2 nova(keystone_admin)]# nova keypair-add --pub_key
>
> > > test2.key.pub test2
>
> > > ERROR (BadRequest): Keypair data is invalid: failed to generate
> > > fingerprint
>
> > > (HTTP 400) (Request-ID: req-219ec220-a894-4d39-90ce-fd3e1ff59c84)
>
> > > Here is the link:
http://ur1.ca/oi4qq
>
> > > I hope this gives you some information!
>
> > > Thank you !!
>
> > Hi Barbara,
>
> > So the keypair that fails for you works in my test
environment :-/. Ok,
> > desperate times call for desperate measures.
>
> > I have taken the code that generates the fingerprint in
Nova (from
> > nova/crypto.py) and prepared a standalone version of it at
> >
http://fpaste.org/320874/55127797/ . Could you take that code to your
> > test
> > system, save it as test.py and run "python test.py"? It will simply
use
> > your
> > public key and try to generate its fingerprint, just like Nova does. If
> > it
> > fails, we will be able to see the exception, which in Nova it is masked
> > by
> > the generic "failed to generate fingerprint" message.
>
> > If it works and generates a proper fingerprint (it should
be
> > 6b:f4:36:18:bc:d2:47:f2:d8:7b:10:39:eb:04:d6:3f), then we'll have to keep
> > on
> > investigating.
>
> > Regards,
>
> > Javier
>
> > > Barbara
>
> > > _______________________________________________
>
> > > Rdo-list mailing list
>
> > > Rdo-list(a)redhat.com
>
> > >
https://www.redhat.com/mailman/listinfo/rdo-list
>
> >
To unsubscribe:
rdo-list-unsubscribe(a)redhat.com
>
_______________________________________________
Rdo-list mailing list
Rdo-list(a)redhat.com
https://www.redhat.com/mailman/listinfo/rdo-list
To unsubscribe: rdo-list-unsubscribe(a)redhat.com