Skip to content

[ntp] traceback during ntp start due to 'MGMT_VRF_CONFIG' is not defined #3527

@stepanblyschak

Description

@stepanblyschak

Description

Steps to reproduce the issue:

  1. Usual start flow

Describe the results you received:

Sep 25 14:54:01.468793 r-boxer-sw01 INFO ntp[14876]: Starting NTP server: ntpdTraceback (most recent call last):
Sep 25 14:54:01.469503 r-boxer-sw01 INFO ntp[14876]:   File "/usr/local/bin/sonic-cfggen", line 294, in <module>
Sep 25 14:54:01.470163 r-boxer-sw01 INFO ntp[14876]:     main()
Sep 25 14:54:01.470726 r-boxer-sw01 INFO ntp[14876]:   File "/usr/local/bin/sonic-cfggen", line 272, in main
Sep 25 14:54:01.471243 r-boxer-sw01 INFO ntp[14876]:     print(template.render(data))
Sep 25 14:54:01.471729 r-boxer-sw01 INFO ntp[14876]:   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 1008, in render
Sep 25 14:54:01.472269 r-boxer-sw01 INFO ntp[14876]:     return self.environment.handle_exception(exc_info, True)
Sep 25 14:54:01.472759 r-boxer-sw01 INFO ntp[14876]:   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 780, in handle_exception
Sep 25 14:54:01.473245 r-boxer-sw01 INFO ntp[14876]:     reraise(exc_type, exc_value, tb)
Sep 25 14:54:01.473778 r-boxer-sw01 INFO ntp[14876]:   File "<template>", line 1, in top-level template code
Sep 25 14:54:01.474272 r-boxer-sw01 INFO ntp[14876]:   File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 411, in getitem
Sep 25 14:54:01.474754 r-boxer-sw01 INFO ntp[14876]:     return obj[argument]
Sep 25 14:54:01.475234 r-boxer-sw01 INFO ntp[14876]: jinja2.exceptions.UndefinedError: 'MGMT_VRF_CONFIG' is undefined

Describe the results you expected:

no traceback

Additional information you deem important (e.g. issue happens only occasionally):

**Output of `show version`:**

```
(paste your output here)
```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions