Menu

#2746 makeconservercf -d does not work

2.7.4
closed
General (881)
5
2012-09-19
2012-03-31
hanjing
No

"makeconservercf -d node" fail to delete node information in /etc/conserver.cf

[root@rh6mn ~]# makeconservercf -V -d rh6cn
Setting the nodes into /etc/conserver.cf on the management node
Setting the following lines into /etc/conserver.cf:
access * {
trusted 127.0.0.1;
trusted rh6mn;
trusted 9.114.47.194,192.168.5.201,rh6mn-public,localhost;
}
default * {
logfile /var/log/consoles/&;
timestamp 1hab;
rw ;
master localhost;
options ondemand;
}
config * {
sslrequired yes;
sslauthority /etc/xcat/cert/ca.pem;
sslcredentials /etc/xcat/cert/server-cred.pem;
}
default cyclades { type host; portbase 7000; portinc 1; }
default mrv { type host; portbase 2000; portinc 100; }
##
## Sample conserver.cf file, to give you ideas of what you can do with
## the various configuration items.
##
#
#### set up global access
#default full { rw
; }
#
#### define some terminal server specifics
## we set portbase and portinc so we can reference the ports in a
## physical representation and let conserver do the math to figure
## out the actual socket address
#default cisco { type host; portbase 2000; portinc 1; }
#default xyplex { type host; portbase 2000; portinc 100; }
#default iolan { type host; portbase 10000; portinc 1; }
#
#### set up some custom break sequences
#break 4 { string "+\d+\d+"; delay 300; }
#break 5 { string "\033c"; }
#
#### set the defaults for all the consoles
## these get applied before anything else
#default * {
# # The '&' character is substituted with the console name
# logfile /var/consoles/&;
# # timestamps every hour with activity and break logging
# timestamp 1hab;
# # include the 'full' default
# include full;
# # master server is localhost
# master localhost;
#}
#
#### define the first terminal server
#default ts1.conserver.com {
# # use the xyplex defaults
# include xyplex;
# # host to connect to is ts1.conserver.com
# host ts1.conserver.com;
# # run login-xyplex when connecting to the term server
# initcmd /usr/local/sbin/login-xyplex;
#}
#
## now define the consoles on ts1.conserver.com
## bryan isn't allowed on web1.conserver.com
#console web1.conserver.com { include ts1.conserver.com; port 2; rw !bryan; }
#console ns1.conserver.com { include ts1.conserver.com; port 10; }
#console ns2.conserver.com { include ts1.conserver.com; port 8; }
#
#### define the second terminal server
## this one is a cisco, with simple socket connections
#default ts2.conserver.com { include cisco; host ts2.conserver.com; }
#
## and the consoles on ts2.conserver.com
#console ldap1.conserver.com { include ts2.conserver.com; port 7; }
#
#### and now some one-off consoles
## we still inherit the '*' default set
## a simple ssh invocation
#console ssh {
# type exec;
# exec ssh localhost;
# # provide a 'message-of-the-day'
# motd "just a simple ssh to localhost";
#}
#
## connect to /dev/ttya
#console ttya {
# type device;
# device /dev/ttya; parity none; baud 9600;
# idlestring "#";
# idletimeout 5m; # send a '#' every 5 minutes of idle
# timestamp ""; # no timestamps on this console
#}
#
#### define a group of users
#group sysadmin {
# users bryan, todd;
# users dave;
#}
#
#### reset the defaults for the next set of consoles
## again, these get applied before anything else
#default * {
# # The '&' character is substituted with the console name
# logfile /var/consoles/&;
# timestamp 5m;
# rw sysadmin; # use the group defined above
# master localhost;
#}
#
#default cyclades {
# # sets up /dev/ttyC0 through /dev/ttyC31, for a 32 port card
# # referenced as ports 1 through 32
# type device;
# device /dev/ttyC.;
# devicesubst .=Pd;
# portbase -1;
# portinc 1;
# host none; # not really used, since devicesubst doesn't use it
# baud 9600;
# parity none;
#}
#
#console modem1.conserver.com { include cyclades; port 2; break 4; }
## todd isn't allowed on modem2.conserver.com
#console modem2.conserver.com { include cyclades; port 6; rw !todd; }
#
#### list of clients we allow
#access * {
# allowed 10.0.0.0/8 192.168.0.0/16;
# allowed cs1.conserver.com cs2.conserver.com cs3.conserver.com;
# trusted 127.0.0.1;
#}
#xCAT BEGIN rh6cn CONS
console rh6cn {
type exec;
exec /opt/xcat/share/xcat/cons/hmc rh6cn;
}
#xCAT END rh6cn CONS
#xCAT BEGIN testnode16 CONS
console testnode16 {
type exec;
exec /opt/xcat/share/xcat/cons/hmc testnode16;
}
#xCAT END testnode16 CONS
#xCAT BEGIN testnode13 CONS
console testnode13 {
type exec;
exec /opt/xcat/share/xcat/cons/hmc testnode13;
}
#xCAT END testnode13 CONS
#xCAT BEGIN testnode18 CONS
console testnode18 {
type exec;
exec /opt/xcat/share/xcat/cons/hmc testnode18;
}
#xCAT END testnode18 CONS
#xCAT BEGIN testnode12 CONS
console testnode12 {
type exec;
exec /opt/xcat/share/xcat/cons/hmc testnode12;
}
#xCAT END testnode12 CONS
#xCAT BEGIN testnode20 CONS
console testnode20 {
type exec;
exec /opt/xcat/share/xcat/cons/hmc testnode20;
}
#xCAT END testnode20 CONS
#xCAT BEGIN testnode17 CONS
console testnode17 {
type exec;
exec /opt/xcat/share/xcat/cons/hmc testnode17;
}
#xCAT END testnode17 CONS
#xCAT BEGIN testnode19 CONS
console testnode19 {
type exec;
exec /opt/xcat/share/xcat/cons/hmc testnode19;
}
#xCAT END testnode19 CONS
#xCAT BEGIN testnode15 CONS
console testnode15 {
type exec;
exec /opt/xcat/share/xcat/cons/hmc testnode15;
}
#xCAT END testnode15 CONS
#xCAT BEGIN testnode14 CONS
console testnode14 {
type exec;
exec /opt/xcat/share/xcat/cons/hmc testnode14;
}
#xCAT END testnode14 CONS
#xCAT BEGIN testnode33 CONS
console testnode33 {
type exec;
exec /opt/xcat/share/xcat/cons/ipmi testnode33;
}
#xCAT END testnode33 CONS
#xCAT BEGIN testnode40 CONS
console testnode40 {
type exec;
exec /opt/xcat/share/xcat/cons/ipmi testnode40;
}
#xCAT END testnode40 CONS
#xCAT BEGIN testnode39 CONS
console testnode39 {
type exec;
exec /opt/xcat/share/xcat/cons/ipmi testnode39;
}
#xCAT END testnode39 CONS
#xCAT BEGIN testnode34 CONS
console testnode34 {
type exec;
exec /opt/xcat/share/xcat/cons/ipmi testnode34;
}
#xCAT END testnode34 CONS
#xCAT BEGIN testnode35 CONS
console testnode35 {
type exec;
exec /opt/xcat/share/xcat/cons/ipmi testnode35;
}
#xCAT END testnode35 CONS
#xCAT BEGIN testnode38 CONS
console testnode38 {
type exec;
exec /opt/xcat/share/xcat/cons/ipmi testnode38;
}
#xCAT END testnode38 CONS
#xCAT BEGIN testnode32 CONS
console testnode32 {
type exec;
exec /opt/xcat/share/xcat/cons/ipmi testnode32;
}
#xCAT END testnode32 CONS
#xCAT BEGIN testnode36 CONS
console testnode36 {
type exec;
exec /opt/xcat/share/xcat/cons/ipmi testnode36;
}
#xCAT END testnode36 CONS
#xCAT BEGIN testnode37 CONS
console testnode37 {
type exec;
exec /opt/xcat/share/xcat/cons/ipmi testnode37;
}
#xCAT END testnode37 CONS
#xCAT BEGIN testnodetmp CONS
console testnodetmp {
type exec;
exec /opt/xcat/share/xcat/cons/hmc testnodetmp;
}
#xCAT END testnodetmp CONS

Discussion

  • Guang Cheng Li

    Guang Cheng Li - 2012-03-31

    The makeconservercf -d flag was there for a long while, but probably never works.

    in conserver.pm::donodeent:

    if ($delmode) {
    return;
    }

    it returns without doing anything if the -d flag is specified.

     
  • Bruce

    Bruce - 2012-06-07

    I think this should be fixed in 2.7.4

     
  • zhao er tao

    zhao er tao - 2012-06-28

    This bug had been fixed by Guang cheng with svn revision 12521. The 'node' attribute was lost when get Nodes Attribs for specified nodes from nodehm table.

     
MongoDB Logo MongoDB