Purpose:
This article shows how to upload the OSSPACK of FlexVNF(VOS) to VD in offline mode. In some situations, the Versa Director doesn't have internet access to download the OSSPACK. This article will help to upload OSSPACK in this situation.
Download the OSSPACK to your local system or Jump server and SCP to VD.
Place the flexvnf OSSPACK "versa-flexvnf-osspack-20220708.bin" in /var/versa/packages/osspack/versa-flexvnf/
Place the flexvnf OSSPACK "versa-flexvnf-osspack-20220708.bin" in /var/versa/packages/osspack/versa-director/
Skip Step (2) if Director is not on 21.X.X release.
(2) If the Director is on 21.2:
Rename the file name from versa-flexvnf-osspack-20xxxxx.bin to versa-flexvnf-osspack-20xxxxx-trusty.bin for Trusty release and versa-flexvnf-osspack-20xxxxx-bionic.bin for Bionic release.
Edit the VD database.
Connect to PSQL DB
$ psql -U vnms -h localhost (password Versa@123)
Insert the OSSPACK to DB.(You need to change the parameters accordingly to your OSSPACK)
vnms=>INSERT into osspack_device_updates values(package_name,product,os_version,update_type,version,last_version, size, percentage, check_sum, download_time, status,create_date,modify_date,lastupdatedby) values('versa-flexvnf-osspack-20230602-bionic.bin','versa-flexvnf','bionic','full','20230602',NULL,'113481769','100',NULL, to_timestamp('2023-06-07 17:06:45.334','yyyy-mm-dd hh24:mi::ss:N'), 'Download_Succeed', to_timestamp('2023-06-07 17:03:45.334','yyyy-mm-dd hh24:mi::ss:N'), to_timestamp('2023-06-07 17:06:45.334','yyyy-mm-dd hh24:mi::ss:N'),'Administrator');
NOTE: in case of bionic osspack we need to update the version, for trusty based osspack , it can be safely skipped as below.
vnms=> INSERT into osspack_device_updates values('versa-flexvnf-osspack-20230602-trusty.bin','versa-flexvnf','full','20230602',NULL,'113481769','100',NULL, to_timestamp('2023-06-07 17:06:45.334','yyyy-mm-dd hh24:mi::ss:N'), 'Download_Succeed', to_timestamp('2023-06-07 17:03:45.334','yyyy-mm-dd hh24:mi::ss:N'), to_timestamp('2023-06-07 17:06:45.334','yyyy-mm-dd hh24:mi::ss:N'),'Administrator');
insert into osspack_updates values ('versa-director-osspack-20230320-bionic.bin', 'versa-director', 'bionic', 'full', '20230320', NULL, '178938877', '100', NULL, to_timestamp('2023-03-30 11:31:45.334', 'yyyy-mm-dd hh24:mi::ss:N'), NULL, 'Download_Succeed', to_timestamp('2023-03-30 11:31:45.364', 'yyyy-mm-dd hh24:mi::ss:N'), to_timestamp('2023-03-30 11:31:45.364', 'yyyy-mm-dd hh24:mi::ss:N'), 'Administrator');
116426163: This is equivalent to the size of the file in Bytes.
Timestamp: You can put the time of the download.
Administrator: You can use the username.
Exit from DB.
vnms=> \q
Check in the GUI to verify whether the new OSSPACK is available or not.
There is an open enhancement Bug raised to manually upload the osspack for Appliances from the Director-GUI:
Bug-ID: 90040
Description: Provision to manually upload the osspack for the appliance or Director when there is no internet connection for the Director.
Fix-Release: 22.1
Note:
https://versanetworks.app.box.com/v/osspack
https://upload.versa-networks.com/index.php/s/nEkF9xOO3e7BA9Z