Quantcast
Channel: Knowledge Base
Viewing all articles
Browse latest Browse all 95

Installing IOS XRv 5.2.2 image when I've got XR 5.3.0

$
0
0

@jobstfel wrote:

@Remus_Grobei posted this question:

Hi there,
Is there a way to have both 5.3 and 5.2 IOX-XR images? I just install the v0.9.17 and I need also 5.2 version. I never
had the previous VIRL so I can't restore the 5.2.2
Thanks,
Remus

virl@virl:~$ sudo salt-call --master eu-virl-image-server.cisco.com state.sls virl.routervms.iosxrv52
[INFO ] Executing command '/sbin/zfs help' in directory '/home/virl'
[INFO ] Loading fresh modules for state activity
[INFO ] Executing command '/sbin/zfs help' in directory '/home/virl'
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://virl/routervms/iosxrv52.sls'
[INFO ] Running state [IOS XRv52] at time 06:16:15.257750
[INFO ] Executing state glance.image_absent for IOS XRv52
[INFO ] Starting new HTTP connection (1): 127.0.0.1
[INFO ] Starting new HTTP connection (1): 127.0.1.1
[INFO ] Image "IOS XRv52" absent
[INFO ] Completed state [IOS XRv52] at time 06:16:15.695695
[INFO ] Running state [nova flavor-delete "IOS XRv52"] at time 06:16:15.695989
[INFO ] Executing state cmd.run for nova flavor-delete "IOS XRv52"
[INFO ] Executing command 'nova flavor-list | grep -w "IOS XRv52"' in directory '/home/virl'
[INFO ] onlyif execution failed
[INFO ] Completed state [nova flavor-delete "IOS XRv52"] at time 06:16:16.501075
local:

  ID: iosxrv52 gone

Function: glance.image_absent
Name: IOS XRv52
Result: True
Comment: Image "IOS XRv52" absent
Started: 06:16:15.257750
Duration: 437.945 ms
Changes:

  ID: iosxrv52 flavor absent

Function: cmd.run
Name: nova flavor-delete "IOS XRv52"
Result: True
Comment: onlyif execution failed
Started: 06:16:15.695989
Duration: 805.086 ms
Changes:

Summary

Succeeded: 2
Failed: 0

Total states run: 2

Hi @Remus_Grobei - ok, so 1st we need to check the parameter that controls if the download is 'allowed'. If you take a look in the file /etc/virl.ini, you will see a section with the following entries:

## Images
iosv: True
csr1000v: True
iosxrv432: False
iosxrv: True
nxosv: True
vpagent: True
## Not currently available
iosvl2: False

This set of parameters control the operation of the salt-states that will download the images for you, either using the command line as you did in your example, or using the 'VIRL Software' panel in the User Workspace Management interface.

The messages that you've captured occur when the parameter controlling 'iosxrv52' is missing or set to 'False'. This SHOULD be present (so what you're seeing IS a bug) and it should be set to 'True'. We will get this fixed up for the next release!

So how do we solve the problem? Please add the line 'iosxrv52: True' to /etc/virl.ini. Once you've saved the file, run the command 'vinstall salt'. After that command completes, you should be able to either run your command once more (sudo salt-call --master eu-virl-image-server.cisco.com state.sls virl.routervms.iosxrv52), or use the VIRL Software panel to select the XRv 5.2.2 image and start the download.

What you should see is a set of message similar to the following when the image is successfully downloaded and installed:

> [INFO    ] Received signed and verified master pubkey from master us-virl-image-server.cisco.com
> [INFO    ] Executing command '/sbin/zfs help' in directory '/home/virl'
> [INFO    ] Loading fresh modules for state activity
> [INFO    ] Executing command '/sbin/zfs help' in directory '/home/virl'
> [INFO    ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://virl/routervms/iosxrv52.sls'
> [INFO    ] Running state [IOS XRv52] at time 09:23:41.990231
> [INFO    ] Executing state glance.image_present for IOS XRv52
> [INFO    ] Starting new HTTP connection (1): 127.0.0.1
> [INFO    ] Starting new HTTP connection (1): 127.0.1.1
> [INFO    ] Starting new HTTP connection (1): 127.0.0.1
> [INFO    ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://images/salt/iosxrv-k9-demo-5.2.2.qcow2'
> [INFO    ] Starting new HTTP connection (1): 127.0.1.1
> [WARNING ] Connection pool is full, discarding connection: 127.0.1.1
> [INFO    ] Starting new HTTP connection (1): 127.0.0.1
> [INFO    ] Starting new HTTP connection (1): 127.0.1.1
> [INFO    ] {u'IOS XRv52': {'status': u'active', 'name': u'IOS XRv52', 'deleted': False, 'checksum': u'dbbd206a25ac19ba5b4a1b1f65aed911', 'created_at': u'2015-03-17T09:23:46', 'disk_format': u'qcow2', 'updated_at': u'2015-03-17T09:23:50', 'properties': {u'hw_vif_model': u'virtio', u'config_disk_type': u'cdrom', u'subtype': u'IOS XRv', u'release': u'5.2.2', u'serial': u'3', u'hw_disk_bus': u'ide', u'hw_cdrom_type': u'id'}, 'owner': u'0a6b3f3a310b467d8c24755db9d1f2a0', 'protected': False, 'min_ram': 0, 'container_format': u'bare', 'min_disk': 0, 'is_public': True, 'id': u'c7fddccc-4343-460e-9a86-2df3364e1017', 'size': 550305792}}
> [INFO    ] Completed state [IOS XRv52] at time 09:23:51.271396
> [INFO    ] Running state [nova flavor-delete "IOS XRv52"] at time 09:23:51.272074
> [INFO    ] Executing state cmd.run for nova flavor-delete "IOS XRv52"
> [INFO    ] Executing command 'nova flavor-list | grep -w "IOS XRv52"' in directory '/home/virl'
> [INFO    ] onlyif execution failed
> [INFO    ] Completed state [nova flavor-delete "IOS XRv52"] at time 09:23:52.246147
> [INFO    ] Running state [nova.flavor_create] at time 09:23:52.247305
> [INFO    ] Executing state module.run for nova.flavor_create
> [INFO    ] Starting new HTTP connection (1): 127.0.0.1
> [INFO    ] Starting new HTTP connection (1): 127.0.1.1
> [INFO    ] {'ret': {'disk': 0, 'vcpus': 1, 'ram': 3096, 'name': 'IOS XRv52', 'id': 0}}
> [INFO    ] Completed state [nova.flavor_create] at time 09:23:52.705393
> local:
> ----------
>           ID: iosxrv52
>     Function: glance.image_present
>         Name: IOS XRv52
>       Result: True
>      Comment: Image "IOS XRv52" created
>      Started: 09:23:41.990231
>     Duration: 9281.165 ms
>      Changes:
>               ----------
>               IOS XRv52:
>                   ----------
>                   checksum:
>                       dbbd206a25ac19ba5b4a1b1f65aed911
>                   container_format:
>                       bare
>                   created_at:
>                       2015-03-17T09:23:46
>                   deleted:
>                       False
>                   disk_format:
>                       qcow2
>                   id:
>                       c7fddccc-4343-460e-9a86-2df3364e1017
>                   is_public:
>                       True
>                   min_disk:
>                       0
>                   min_ram:
>                       0
>                   name:
>                       IOS XRv52
>                   owner:
>                       0a6b3f3a310b467d8c24755db9d1f2a0
>                   properties:
>                       ----------
>                       config_disk_type:
>                           cdrom
>                       hw_cdrom_type:
>                           id
>                       hw_disk_bus:
>                           ide
>                       hw_vif_model:
>                           virtio
>                       release:
>                           5.2.2
>                       serial:
>                           3
>                       subtype:
>                           IOS XRv
>                   protected:
>                       False
>                   size:
>                       550305792
>                   status:
>                       active
>                   updated_at:
>                       2015-03-17T09:23:50
> ----------
>           ID: iosxrv52 flavor delete
>     Function: cmd.run
>         Name: nova flavor-delete "IOS XRv52"
>       Result: True
>      Comment: onlyif execution failed
>      Started: 09:23:51.272074
>     Duration: 974.073 ms
>      Changes:
> ----------
>           ID: iosxrv52 flavor create
>     Function: module.run
>         Name: nova.flavor_create
>       Result: True
>      Comment: Module function nova.flavor_create executed
>      Started: 09:23:52.247305
>     Duration: 458.088 ms
>      Changes:
>               ----------
>               ret:
>                   ----------
>                   disk:
>                       0
>                   id:
>                       0
>                   name:
>                       IOS XRv52
>                   ram:
>                       3096
>                   vcpus:
>                       1

> Summary
> ------------
> Succeeded: 3 (changed=2)
> Failed:    0
> ------------
> Total states run:     3

So, now how do you select the 5.2.2 image to be used instead of the 5.3.0 when you're spinning up a topology?

The salt-call loads the xr 5.2.2 image in to the image database. When you have your network topology in VM Maestro, you need to select the XRv nodes and then set the 'VM image' in the properties tab by pressing the 'Browse' button and selecting the XRv 5.2.2 image from the list. You'll end up with something like:

When you start your simulation, the nodes with the value set with load the specified image - nodes without the value set, will load the default XRv image (5.3.0).

I hope this covers everything!

Posts: 7

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95

Trending Articles