Skip to content

Restore procedure is unable to setup controller. #125

@pehruby

Description

@pehruby

Description

sdwan restore timeouts

Expected Behavior

Lab correctly restored

Actual Behavior

The tool is unable to correctly recreate the controller. Manual intervention is needed.

Affected Version

catalyst-sdwan-lab==2.1.5
CML 2.9 in AWS

Steps to Reproduce

  1. csdwan deploy 20.15.1
  2. csdwan backup
  3. csdwan restore --lab sdwan-test
    Directory to restore [backup]:
    Waiting for SD-WAN Manager API (attempt 119)...Failed to login to SD-WAN Manager after 60 minutes.

In case I connect to console of the controller during the time period when the tools waits for API, and go manually through the setup process, the restore is successfull:

Manager01 login: admin
Password: 
Welcome to Viptela CLI
admin connected from 127.0.0.1 using console on Manager01
1) COMPUTE_AND_DATA
2) DATA
3) COMPUTE
Select persona for vManage [1,2 or 3]: 1
You chose persona COMPUTE_AND_DATA (1)
Are you sure? [y/n] y
Available storage devices:
vdb     50GB
sr0     0GB
1) vdb
2) sr0
Select storage device to use: 1
Would you like to format vdb? (y/n): y
umount: /dev/vdb: not mounted.
mke2fs 1.46.5 (30-Dec-2021)
Discarding device blocks: done                            
Creating filesystem with 13107200 4k blocks and 3276800 inodes
Filesystem UUID: 18561613-646a-44ea-997a-01e87cf00881
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424
 
Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (65536 blocks): done
Writing superblocks and filesystem accounting information: done
 
Extracting vManage extra-packages
vManage Extra-Package extracted to /tmp_install/extra-packages/20.15.1/
vManage Extra-Package Extraction Complete
 

... reboot follows

Environment vars are set like this:
export CML_IP='xxxxxx
export CML_USER='admin'
export CML_PASSWORD='xxxxxxx'
export MANAGER_IP='pat:2443'
export MANAGER_USER='admin'
export MANAGER_PASSWORD='xxxxxx'
export LAB_NAME='sdwan-test'

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions