Contrail Platform Developers
Highlighted
Contrail Platform Developers

Contrail 3.0: Installation Dependency Issues

‎04-13-2016 08:22 AM

Trying to install a single node Contrail 3.0 setup. 

 

- Ubuntu 14.04.4: ubuntu-14.04.4-server-amd64.iso

- Contrail 3.0.0 Ubuntu (OpenStack Kilo): contrail-install-packages_3.0.0.0-2725-ubuntu-14-04kilo_all.deb

 

Procedure is pretty straightforward:

 

1. Copy package to host:

cp ~/Downloads/contrail-install-packages_3.0.0.0-2725-ubuntu-14-04kilo_all.deb root@10.10.10.100:/root

 

2. Unpack and setup

dpkg -i /root/contrail-install-packages_3.0.0.0-2725-ubuntu-14-04kilo_all.deb
cd /opt/contrail/contrail_packages/ ; ./setup.sh

 

3. Edit testbed.py

cd /opt/contrail/utils/fabfile/testbeds/

cp testbed_singlebox_example.py testbed.py

nano /opt/contrail/utils/fabfile/testbeds/testbed.py

 

4. Install Contrail

cd /opt/contrail/utils/

fab install_contrail

 

Eventually, this fails:

 

2016-04-13 07:45:29:058197: [root@10.10.10.100] out: The following packages have unmet dependencies:
2016-04-13 07:45:29:058288: [root@10.10.10.100] out: contrail-openstack : Depends: keystone but it is not going to be installed
2016-04-13 07:45:29:058408: [root@10.10.10.100] out: Depends: nova-novncproxy but it is not going to be installed
2016-04-13 07:45:29:058505: [root@10.10.10.100] out: E: Unable to correct problems, you have held broken packages.

 

I've done a bunch of messing around with trying to manually install packages with no luck. In the Contrail 2.20 days I was able to eventually figure out what magic combination of packages installed before Contrail installation is attempted, and also during Contrail installation would produce a working system where the fab install_contrail command would actually succeed. I've not been so lucky in the Contrail 3.0 attempt so far. Has anyone seen this and been able to fix it?

 

Also, why does Juniper keep distributing broken Contrail packages? I really shouldn't need to do all this. 

--
Chris Jones
JNCIE-ENT #272
Former JNCIP-SP
Former CCIE #25655
Former Juniper Ambassador
4 REPLIES 4
Contrail Platform Developers

Re: Contrail 3.0: Installation Dependency Issues

‎04-13-2016 09:10 AM

Hi Chris,

 

When I was doing that the magic combination was to just install a bare minimal Ubuntu, with OpenSSH as an only optional package. That was not Contrail 3.0 however.

 

Best Regards,
PK

Juniper Ambassador, Juniper Networks Certified Instructor,
JNCIE-SEC #98, JNCIE-ENT #393, JNCIE-SP #2253
Twitter: @JuniperTrain
GitHub: https://github.com/pklimai
[Juniper Authorized Education & Support in Russia]
Contrail Platform Developers

Re: Contrail 3.0: Installation Dependency Issues

‎04-13-2016 09:13 AM

Yup, same here. Absolute base Ubuntu install with OpenSSH being the only thing selected. I did a lot of manual package installations before and eventually got it working. Not having any luck doing that with Contrail 3.0 yet. 

--
Chris Jones
JNCIE-ENT #272
Former JNCIP-SP
Former CCIE #25655
Former Juniper Ambassador
Contrail Platform Developers
Solution
Accepted by topic author JunosChris
‎04-14-2016 09:52 AM

Re: Contrail 3.0: Installation Dependency Issues

‎04-14-2016 09:52 AM

So apparently the solution is "use the recommended version of Ubuntu".

 

I was using Ubuntu 14.04.4, but recommended is 14.04.2. When I switched to .2, Contrail 3.0 installed without having to use ANY manual dependency adds. That's actually the first time since I started using Contrail (1.05) where I've had no issues. I'm shocked. 

 

Thanks all for the help.

--
Chris Jones
JNCIE-ENT #272
Former JNCIP-SP
Former CCIE #25655
Former Juniper Ambassador
Contrail Platform Developers

Re: Contrail 3.0: Installation Dependency Issues

‎04-14-2016 03:44 PM

Good to know you've solved it. Actually when I read you are using 14.04.4 I just thought that one is now recommended.

Best Regards,
PK

Juniper Ambassador, Juniper Networks Certified Instructor,
JNCIE-SEC #98, JNCIE-ENT #393, JNCIE-SP #2253
Twitter: @JuniperTrain
GitHub: https://github.com/pklimai
[Juniper Authorized Education & Support in Russia]