Skip to content

CLOUDSTACK-9039: Fix paths for logging Ubuntu Management#1039

Merged
asfgit merged 1 commit into
apache:masterfrom
borisroman:CLOUDSTACK-9039
Nov 9, 2015
Merged

CLOUDSTACK-9039: Fix paths for logging Ubuntu Management#1039
asfgit merged 1 commit into
apache:masterfrom
borisroman:CLOUDSTACK-9039

Conversation

@borisroman
Copy link
Copy Markdown
Contributor

Fix paths for logging Ubuntu Management.

How to test:
Install via DEB packages...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Perhaps use only instead of 2 lines to create the tree
mkdir -p /var/log/cloudstack/management/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I agree with @milamberspace .
btw, what about the /var/log/cloudstack/usage for usage server?

@borisroman
Copy link
Copy Markdown
Contributor Author

@ustcweizhou This is only for the management server! The usage server will create it's own paths when installed. @milamberspace I'll push that change, thanks!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you could remove line 110

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Both lines can be removed. The packaging already creates them.

@ustcweizhou
Copy link
Copy Markdown
Contributor

@borisroman LGTM if remove line 110.

@remibergsma
Copy link
Copy Markdown
Contributor

FYI: Started tests on this branch.

@borisroman
Copy link
Copy Markdown
Contributor Author

@borisroman
Copy link
Copy Markdown
Contributor Author

@wido @ustcweizhou Could you review again please?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this need to be hard-coded? I had a quick look into the python logging and am hoping we can retrieve the path from there. just a thought

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@DaanHoogland You have a valid point, but this is been done throughout all this Python code. Let's fix it later in one go.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

k

@remibergsma
Copy link
Copy Markdown
Contributor

@wido @ustcweizhou Can you look again here please, see @borisroman's comments.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@borisroman Did you see this remark in the code? Is that about the line you remove here? I have no clue what sl 6.1 is.. Seems like a RHEL like release? Scientific Linux? I dunno! Does it hurt to have the dir? We better remove it later when master is unfrozen IMHO as we do not have a change to test this properly otherwise.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks like a xen release!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@DaanHoogland No, this should be an OS capable of running the management server.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@remibergsma Could you point me to a couple lines of code where /var/log/cloudstack-management/ is used in current master?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@remibergsma Grepping yields:

grep "/var/log/cloudstack-management/" . -r
./python/lib/cloudutils/serviceConfigServer.py:        bash("mkdir /var/log/cloudstack-management/")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ok, @remibergsma either slackware or suse linux then. sl instead of s1 (which I read)

@remibergsma
Copy link
Copy Markdown
Contributor

OK, now these became a textual change in Python. LGTM.

@asfgit asfgit merged commit acd49d8 into apache:master Nov 9, 2015
asfgit pushed a commit that referenced this pull request Nov 9, 2015
CLOUDSTACK-9039: Fix paths for logging Ubuntu ManagementFix paths for logging Ubuntu Management.

How to test:
Install via DEB packages...

* pr/1039:
  CLOUDSTACK-9039: Fix paths for logging Ubuntu Management.

Signed-off-by: Remi Bergsma <github@remi.nl>
@borisroman borisroman deleted the CLOUDSTACK-9039 branch December 12, 2015 01:29
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.

7 participants