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

Support for Linux Openwrt #1412

Merged
merged 6 commits into from
Feb 22, 2019
Merged

Support for Linux Openwrt #1412

merged 6 commits into from
Feb 22, 2019

Conversation

plessisa
Copy link
Contributor

@plessisa plessisa commented Dec 3, 2018

Description

The WALinuxAgent does not support Linux Openwrt. The pull request allow to support it. There is a first Commit to bring basic support, then few additional commit to fix area that have to be handle specifically for Linux Openwrt

Issue #1380

This patch contains:

  1. (changed) future.py
    Read the Openwrt version file to determine if we are running on openwrt
  2. (changed) azurelinuxagent/common/osutil/factory.py
    Reference to class OpenWRTOSUtil
  3. (new file) azurelinuxagent/common/osutil/openwrt.py
    Add class OpenWRTOSUtil
  4. (changed) azurelinuxagent/daemon/resourcedisk/factory.py
    Reference to class OpenWRTResourceDiskHandler
  5. (new file) azurelinuxagent/daemon/resourcedisk/openwrt.py
    Add class OpenWRTResourceDiskHandler
  6. (changed) bin/waagent2.0
    Provide support for Openwrt action
  7. (new file) init/openwrt/waagent
    Provide init file for Openwrt
  8. (changed) setup.py
    Separate the workflow of Openwrt

PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made and Travis.CI is passing.

Quality of Code and Contribution Guidelines

@msftclas
Copy link

msftclas commented Dec 3, 2018

CLA assistant check
All CLA requirements met.

@plessisa plessisa force-pushed the master branch 2 times, most recently from 47d3e61 to 71952d7 Compare December 3, 2018 12:21
@plessisa
Copy link
Contributor Author

plessisa commented Dec 7, 2018

Is there anything I can do to help the review?

Copy link
Contributor

@jeking3 jeking3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments for you.

azurelinuxagent/common/future.py Outdated Show resolved Hide resolved
azurelinuxagent/common/osutil/openwrt.py Outdated Show resolved Hide resolved
azurelinuxagent/daemon/resourcedisk/openwrt.py Outdated Show resolved Hide resolved
azurelinuxagent/daemon/resourcedisk/openwrt.py Outdated Show resolved Hide resolved
@plessisa plessisa force-pushed the master branch 3 times, most recently from 9405d50 to 384125f Compare December 18, 2018 15:24
@plessisa
Copy link
Contributor Author

plessisa commented Jan 9, 2019

@vrdmr, @narrieta Is there anything I can do to help the review of this code ?

@vrdmr
Copy link
Member

vrdmr commented Jan 11, 2019

Hi @plessisa, In our end to end tests with your PR, we are seeing the following errors showing up - Agent WALinuxAgent-2.2.34 launched with command 'python3 -u bin/WALinuxAgent-2.2.34-py2.7.egg -run-exthandlers' failed with return code: 1 on Debian systems. We need to investigate more. IMT, could you please rebase your branch with the current upstream master to make sure the recent stdout/stderr fixes are in? Thanks.

@vrdmr vrdmr self-requested a review January 11, 2019 07:26
Plessis added 4 commits January 11, 2019 10:49
Signed-off-by: Plessis <aplessis@rbbn.com>
Signed-off-by: Plessis <aplessis@rbbn.com>
Signed-off-by: Plessis Adrien <adr.plessis@gmail.com>
Signed-off-by: Plessis <aplessis@rbbn.com>

Fix indentation issue

Signed-off-by: Plessis <aplessis@rbbn.com>
@plessisa
Copy link
Contributor Author

Hi @vrdmr, I rebased the PR today. I will investigate this issue on Debian.

@vrdmr
Copy link
Member

vrdmr commented Jan 11, 2019 via email

Signed-off-by: Plessis <aplessis@rbbn.com>
@plessisa
Copy link
Contributor Author

@vrdmr I am not able to reproduce this issue on Debian. Can you?

@plessisa
Copy link
Contributor Author

Hi @narrieta Any chance you can complete this review? Seems like @vrdmr is not available.

@narrieta
Copy link
Member

@plessisa Sorry for the delay -- I'll try to look into this next week - this week is fully booked

@vrdmr
Copy link
Member

vrdmr commented Feb 20, 2019

@narrieta - Integration tests passed. Automation OK.

Copy link
Member

@vrdmr vrdmr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@narrieta - Could you please take a second look.

bin/waagent2.0 Outdated
@@ -2156,6 +2157,132 @@ class FreeBSDDistro(AbstractDistro):
def routeAdd(self, net, mask, gateway):
Run("/sbin/route add -net " + net + " " + mask + " " + gateway, chk_err=False)


############################################################
# OpenWRTDistro
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are currently not supporting waagent2.0 version of the agent. This code is deprecated and you can remove this change from the PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I did removed the wagent2.0 change

@vrdmr vrdmr merged commit 169f89c into Azure:master Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants