hi Sachin,
this issue is because the user of contrail-nodemgr is root:
root 12923 12922 0 23:24 ? 00:00:01 python
/usr/bin/contrail-nodemgr --nodetype=contrail-config
default root requiretty
so, while exec sudo service supervisor-config restart in contrail-nodemgr
would failed and error msg is below:
sudo: sorry, you must have a tty to run sudo
Execution of action sudo service supervisor-config restart returned err 1
I found that in /etc/sudoers.d/contrail_sudoers,already diable requiretty
for contrail user
1. disable requiretty for root user
2. change user to contrail of contrail-nodemgr
which would be better?
Thx,
Keyang Li
[email protected]
From: [email protected]
Date: 2016-04-08 13:31
To: Sachin Bansal
CC: dev
Subject: Re: [opencontrail-dev] ipaddr of VMs with subnet mask 255.255.255.255
due to contrail-schema doesn't work well
hi
I found that the supervisor-config rules "contrail-config.rules" is read by
contrail-nodemgr
maybe the contrail-nodemgr didn't work well in our env.
[email protected]
From: [email protected]
Date: 2016-04-08 09:32
To: Sachin Bansal
CC: dev
Subject: Re: [opencontrail-dev] ipaddr of VMs with subnet mask 255.255.255.255
due to contrail-schema doesn't work well
hi Sachin,
the version of our supervision is:
supervisor-3.1.3-2.el7.noarch
we didn't modified the supervisor-config rules,the version of supervisor
may be too low.
Keyang Li
[email protected]
From: Sachin Bansal
Date: 2016-04-08 02:11
To: [email protected]
CC: dev
Subject: Re: [opencontrail-dev] ipaddr of VMs with subnet mask 255.255.255.255
due to contrail-schema doesn't work well
Hi Keyang,
Unless you modified supervisor-config rules, if you bring down api server, all
config services will be restarted. How are you stopping api server?
Sachin
On Apr 7, 2016, at 12:29 AM, [email protected] wrote:
hi all,
the env is ha with 3 cfgm nodes in R2.20 version.
we found that if the contrail-api doesn't work on the node which
contrail-schema is active
then the ipaddr of the VMs created recently would with subnet mask of
255.255.255.255.
we think this is because:
the contrail-api sync the data of ifmap-server through rabbitmq
if the contrail-api is stopped,then the data of local ifmap-server is
outmoded
then the contrail-schema won't work well
is that right ?
we want to check the status of contrail-api and restart the contrail-schema
if needed in /opt/contrail/bin/contrail-cmon-monitor.sh
any advices would be appreciated.
thx,
Keyang Li
[email protected]
_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org
_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org