[Container-tools] CDK Bug with public IP

Praveen Kumar kumarpraveen.nitdgp at gmail.com
Mon Apr 11 13:17:09 UTC 2016


On Mon, Apr 11, 2016 at 6:09 PM, Zisis Lianas <Zisis.Lianas at consol.de> wrote:
> Hi Praveen,

Hello,

>
> thanks for your feedback.
>
> I was not using the libvirt provider - rather it is/was virtualbox:
> "Bringing machine 'default' up with 'virtualbox' provider..."
> Also I already used the newest CDK version (beta5).
>
> Nevertheless, I cleaned up my whole environment, and installed the
> newest box version: rhel-cdk-kubernetes-7.2-21.x86_64.vagrant-virtualbox.box
> instead of rhel-cdk-kubernetes-7.2-19.x86_64.vagrant-virtualbox.box.
>
> With the newest version, the success summary is missing when
> running "vagrant up". It stops with a red coloured message
> ("Created symlink from..."). But the box is running, and also
> Openshift.
>
> Also the login error seems to be fixed (the public IP address is
> configured correctly).

This is because (I hope) you are using vagrant-service-manager-1.0.0
plugin and this is currently a known issue[0] which we are already
working on.

[0] https://github.com/projectatomic/vagrant-service-manager/issues/163

> Here is the output:
>
> [zisis at rhenium rhel-ose]$ ls -ld ~/.vagrant.d/ .vagra*/  /var/lib/libvirt/images/*
> ls: cannot access /home/zisis/.vagrant.d/: No such file or directory
> ls: cannot access .vagra*/: No such file or directory
> ls: cannot access /var/lib/libvirt/images/*: No such file or directory
>
> [zisis at rhenium rhel-ose]$ vagrant plugin install vagrant-registration vagrant-service-manager
> Installing the 'vagrant-registration' plugin. This can take a few minutes...
> Installed the plugin 'vagrant-registration (1.2.1)'!
> Installing the 'vagrant-service-manager' plugin. This can take a few minutes...
> Installed the plugin 'vagrant-service-manager (1.0.0)'!
>
> [zisis at rhenium rhel-ose]$ vagrant box add --name cdkv2 ~/rhel-cdk-kubernetes-7.2-21.x86_64.vagrant-virtualbox.box
> ==> box: Box file was not detected as metadata. Adding it directly...
> ==> box: Adding box 'cdkv2' (v0) for provider:
>     box: Unpacking necessary files from: file:///home/zisis/rhel-cdk-kubernetes-7.2-21.x86_64.vagrant-virtualbox.box
> ==> box: Successfully added box 'cdkv2' (v0) for 'virtualbox'!
>
>
> [zisis at rhenium rhel-ose]$ vagrant box add --name cdkv2 ~/rhel-cdk-kubernetes-7.2-21.x86_64.vagrant-virtualbox.box
> ==> box: Box file was not detected as metadata. Adding it directly...
> ==> box: Adding box 'cdkv2' (v0) for provider:
>     box: Unpacking necessary files from: file:///home/zisis/rhel-cdk-kubernetes-7.2-21.x86_64.vagrant-virtualbox.box
> ==> box: Successfully added box 'cdkv2' (v0) for 'virtualbox'!
> [zisis at rhenium rhel-ose]$ vagrant up
> Bringing machine 'default' up with 'virtualbox' provider...
> ==> default: Importing base box 'cdkv2'...
> ==> default: Matching MAC address for NAT networking...
> ==> default: Setting the name of the VM: rhel-ose_default_1460376944126_45361
> ==> default: Clearing any previously set network interfaces...
> ==> default: Preparing network interfaces based on configuration...
>     default: Adapter 1: nat
>     default: Adapter 2: hostonly
> ==> default: Forwarding ports...
>     default: 22 (guest) => 2222 (host) (adapter 1)
> ==> default: Running 'pre-boot' VM customizations...
> ==> default: Booting VM...
> ==> default: Waiting for machine to boot. This may take a few minutes...
>     default: SSH address: 127.0.0.1:2222
>     default: SSH username: vagrant
>     default: SSH auth method: private key
>     default:
>     default: Vagrant insecure key detected. Vagrant will automatically replace
>     default: this with a newly generated keypair for better security.
>     default:
>     default: Inserting generated public key within guest...
>     default: Removing insecure key from the guest if it's present...
>     default: Key inserted! Disconnecting and reconnecting using new SSH key...
> ==> default: Machine booted and ready!
> ==> default: Checking for guest additions in VM...
>     default: No guest additions were detected on the base box for this VM! Guest
>     default: additions are required for forwarded ports, shared folders, host only
>     default: networking, and more. If SSH fails on this machine, please install
>     default: the guest additions and repackage the box to continue.
>     default:
>     default: This is not an error message; everything may continue to work properly,
>     default: in which case you may ignore this message.
> ==> default: Configuring and enabling network interfaces...
> ==> default: Registering box with vagrant-registration...
>     default: Would you like to register the system now (default: yes)? [y|n]n
> ==> default: Copying TLS certificates to /home/zisis/cdk/components/rhel/rhel-ose/.vagrant/machines/default/virtualbox/docker
> ==> default: Created symlink from /etc/systemd/system/multi-user.target.wants/openshift.service to /usr/lib/systemd/system/openshift.service.
> [zisis at rhenium rhel-ose]$
>
>
>
> [zisis at rhenium rhel-ose]$ curl -k -I https://192.168.100.10:8443/console/
> HTTP/1.1 200 OK
> Cache-Control: public, max-age=0, must-revalidate
> Etag: W/"112fcc4_"
> Vary: Accept-Encoding
> Date: Mon, 11 Apr 2016 12:18:32 GMT
> Content-Type: text/html; charset=utf-8


-- 
Praveen Kumar
http://fedoraproject.org/wiki/User:Kumarpraveen
http://fedoraproject.org/
http://kumar-pravin.blogspot.com




More information about the Container-tools mailing list