Changeset 2389


Ignore:
Timestamp:
Mar 19, 2019, 1:37:16 AM (3 months ago)
Author:
bruno
Message:

Do not exit if port is undefined for VM in pb_get_port as this may be overwritten later

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r2387 r2389  
    10411041    pb_log(0, "and that it allows remote root login (PermitRootLogin yes in /etc/ssh/sshd_config)\n");
    10421042    pb_log(0, "Also ensure that network is up, firewalling correctly configured\n");
    1043     pb_log(0, "and perl-YAML, tar, sudo, ntpdate and scp/ssh installed\n");
     1043    pb_log(0, "and perl-YAML, perl-Date-Manip, tar, sudo, ntpdate, make and scp/ssh installed\n");
    10441044    pb_log(0, "You should then be able to login with ssh -p VMPORT root\@localhost (if VM started with pb)\n");
    10451045} elsif ($action =~ /^setuprm$/) {
     
    50505050# key is project on VM, but machine tuple for RM
    50515051if ($cmt =~ /^RM/i) {
    5052     die "No port passed in parameter. You may miss a config file. Report to dev team\n" if (not defined $port->{"$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}"});
     5052    die "No port passed in parameter. You may miss a RM config file. Report to dev team\n" if (not defined $port->{"$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}"});
    50535053    $nport = $port->{"$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}"};
    50545054} else {
    5055     die "No port passed in parameter. You may miss a config file. Report to dev team\n" if (not defined $port->{'PBPROJ'});
     5055    die "No port passed in parameter. You may miss a VE config file or a vmport entry for $ENV{'PBPROJ'}. Report to dev team\n" if ((not defined $port->{'PBPROJ'}) and ($cmt =~ /^VE/i));
    50565056    $nport = $port->{$ENV{'PBPROJ'}};
    50575057}
    5058 pb_log(2,"pb_get_port with $nport\n");
     5058pb_log(2,"pb_get_port with $nport\n") if (defined $nport);
    50595059if ($cmt =~ /^VM/i) {
    50605060    # Maybe a port was given as parameter so overwrite
Note: See TracChangeset for help on using the changeset viewer.