Skip to content

CLOUDSTACK-8453: Fix DB result check in test_VirtualRouter_alerts.py - #239

Closed
gauravaradhye wants to merge 1 commit into
apache:masterfrom
gauravaradhye:8453
Closed

gauravaradhye wants to merge 1 commit into
apache:masterfrom
gauravaradhye:8453

Conversation

@gauravaradhye

Copy link
Copy Markdown

After stopping the apache service, the alerts in database is matched currently with the string "Monitoring Service on VR RouterName".
The database contains the subject as "Monitoring Service on VR RouterName. 2015-05-07 10:36:07,207 [INFO] [The process apache2 is not running trying recover ] apache2"
The string matching should be made less strict and should be made to use like % operator.

Tested on Xenserver:
test_01_VRServiceFailureAlerting (test_VirtualRouter_alerts.TestVRServiceFailureAlerting) ... === TestName: test_01_VRServiceFailureAlerting | Status : SUCCESS ===
ok


Ran 1 test in 1920.846s

OK

@asfgit asfgit closed this in fcd74d5 May 8, 2015
@asfbot

asfbot commented May 8, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #123 FAILURE
Looks like there's a problem with this pull request

@gauravaradhye
gauravaradhye deleted the 8453 branch May 22, 2015 10:12
karuturi pushed a commit to karuturi/cloudstack that referenced this pull request Oct 6, 2016
…erts.py

Signed-off-by: Gaurav Aradhye <gaurav.aradhye@clogeny.com>
This closes apache#239
Reviewed-by: Gaurav
yadvr pushed a commit that referenced this pull request Jan 20, 2021
Fixes #237

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
yadvr pushed a commit to shapeblue/cloudstack that referenced this pull request Sep 27, 2023
* Move PassphraseVO to use String instead of byte[] to support Encrypt annotation

* Check for unencrypted passphrases before migrating passphrase table

---------

Co-authored-by: Marcus Sorensen <mls@apple.com>

Fixes apache#239

This PR moves PassphraseVO passphrase to String type. Since the
GenericDaoBase manipulates encrypted fields as Strings we don't improve
anything by handling as byte arrays. We still use byte arrays to pass
these values down to the agents and we can get some security gains
there.

This PR also handles cases where the passphrase field may be previously
unencrypted, and upgrades them to encrypted fields using the old
encryption during cloudstack-migrate-databases. Then the process can
upgrade to new encryption normally.
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.

2 participants