Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Quagga permissions that prevent from writing configurations inside vtysh #212

Closed
tcaiazzi opened this issue May 9, 2023 · 0 comments
Assignees
Milestone

Comments

@tcaiazzi
Copy link
Member

tcaiazzi commented May 9, 2023

We found that some permissions for images that uses Quagga are not set correctly. This prevents from writing a configuration file directly from vtysh using the write command, leading to the following error:

root@r2:/# vtysh
% Command incomplete.

Hello, this is Quagga (version 1.2.4).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

zebra# write
Building Configuration...
Can't open configuration file /etc/quagga/zebra.conf.LoGxRJ.
[OK]

This happens since Quagga tries to write the configuration on a temporary file (/etc/quagga/zebra.conf.LoGxRJ) that is created with the wrong permission.

To fix this issue we need to add change following permission to the Quagga directory (in DockerMachine and KubernetesMachine classes) from:

chown quagga:quagga /etc/quagga/*

To:

chown --recursive quagga:quagga /etc/quagga/

In this way the quagga user owns the /etc/quagga directory, allowing the writing of the temporary configuration file.

@tcaiazzi tcaiazzi self-assigned this May 9, 2023
@tcaiazzi tcaiazzi changed the title Fix Qugga permissions that prevent from writing configuration inside vtysh Fix Quagga permissions that prevent from writing configuration inside vtysh May 9, 2023
@tcaiazzi tcaiazzi changed the title Fix Quagga permissions that prevent from writing configuration inside vtysh Fix Quagga permissions that prevent from writing configurations inside vtysh May 9, 2023
tcaiazzi added a commit that referenced this issue May 9, 2023
@tcaiazzi tcaiazzi added this to the Release 3.6.0 milestone May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant