CFM: ZTP: dhcp_server_1 container is stuck in the restarting phase

Bug #1794887 reported by Soumil Kulkarni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Won't Fix
Medium
Rishabh Tulsian
Trunk
In Progress
Medium
Rishabh Tulsian

Bug Description

Contrail Version: ocata-5.0-270
Contrail-ansible-deployer branch : R5.0

    I deployed an all-in-one contrail cluster for ZTP with the flags for dhcp and tftp containers. The provision has gone through but the dhcp container is stuck in the restarting phase.
This is the error from the docker logs:

Internet Systems Consortium DHCP Server 4.2.5
Copyright 2004-2013 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Wrote 0 leases to leases file.

No subnet declaration for pkt0 (no IPv4 addresses).
** Ignoring requests on pkt0. If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface pkt0 is attached. **

No subnet declaration for docker0 (172.17.0.1).
** Ignoring requests on docker0. If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface docker0 is attached. **

No subnet declaration for vhost0 (10.87.69.131).
** Ignoring requests on vhost0. If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface vhost0 is attached. **

No subnet declaration for eth0 (no IPv4 addresses).
** Ignoring requests on eth0. If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface eth0 is attached. **

Not configured to listen on any interfaces!

This version of ISC DHCP is based on the release available
on ftp.isc.org. Features have been added and other changes
have been made to the base software release in order to make
it work better with this distribution.

Please report for this software via the CentOS Bugs Database:
    http://bugs.centos.org/

exiting.

       I spoke to Rishabh about this, this is because we do have dhcp subnet configured for now. He told me that the container would be restarted with the new config after the ztp process is started from the UI. We should have this detail mentioned in the release document.

Revision history for this message
Atul Moghe (moghea) wrote :

This should be targeted with 5.1 fix. Where dhcp and tftp would be part ztp micro service architecture.

Jeba Paulaiyan (jebap)
tags: added: fabric releasenote ztp
Revision history for this message
Jeba Paulaiyan (jebap) wrote :

Notes:

In Fabric ZTP scenario, dhcp_server_1 container in the all-in-one ZTP cluster will stuck in the restarting phase. This is because the dhcp subnet info is not present in the initial configuration and this state will recover when the ZTP process is started from the UI which inturn applys the dhcp subnet configuration and restarts the container.

Jeba Paulaiyan (jebap)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/48164
Submitter: Rishabh Tulsian (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/48164
Submitter: supriya sridhar (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/48164
Submitter: Rishabh Tulsian (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/48164
Submitter: supriya sridhar (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/48164
Submitter: Rishabh Tulsian (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/48164
Submitter: supriya sridhar (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/48164
Submitter: Rishabh Tulsian (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/48164
Committed: http://github.com/Juniper/contrail-controller/commit/f37c74d15aea29e2a03106b8be3b5e0793793742
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit f37c74d15aea29e2a03106b8be3b5e0793793742
Author: jnpr-rtulsian <email address hidden>
Date: Wed Dec 12 11:29:30 2018 -0800

Job Manager and ZTP refactoring

- Moved Job Manager to DM
- DM manages ZTP
- Using DNSMASQ as DHCP and TFTP server
- Using Rabbit MQ for Job Manager and ZTP communication
- Implemented ZTP config and TFTP update in DM
- Added Kombu AMQP client
- Added APIs to api-server for AMQP

Change-Id: I79d106f2cdd6b196f398059bc22e51347047641e
Depends-On: I324f694a54fb9fe3cd3a7fc87f7cfce93ba6cd85
Depends-On: I97b9332491ffd70d508cbab453c449706d449c24
Implements: https://blueprints.launchpad.net/juniperopenstack/+spec/dm-pod
Closes-Bug: #1780580
Closes-Bug: #1793811
Closes-Bug: #1794887
Closes-Bug: #1796762

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/48877
Submitter: Arun RS (<email address hidden>)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.