marvin not cleaning in isolated test cases

2019-10-04 Thread Daan Hoogland
LS,
I want to run an integration test (for LDAP but that is irrelevant) and
marvin does not cleanup resources
I isolated the problem like so:
```
#Import Local Modules

import marvin
from marvin.cloudstackTestCase import *
from marvin.cloudstackAPI import *
from marvin.lib.utils import *
from marvin.lib.base import *
from marvin.lib.common import *
from marvin.lib.utils import (random_gen)
from nose.plugins.attrib import attr

#Import System modules
import time
import logging

logger = logging.getLogger(__name__)
logger_handler = logging.FileHandler('/tmp/MarvinLogs/{}.log'.format(__name__))
logger_formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s')
logger_handler.setFormatter(logger_formatter)
logger.addHandler(logger_handler)
logger.setLevel(logging.DEBUG)


class TestData:
parentDomain = "TEST"
name = "name"
id = "id"
notAvailable = "N/A"

domains = "domains"

def __init__(self):
self.testdata = {
TestData.domains : [
{
TestData.name : TestData.parentDomain,
TestData.id : TestData.notAvailable
},
],
}


class TestTestCleanup(cloudstackTestCase):

@classmethod
def setUpClass(cls):
logger.info("Setting up Class")
testClient = super(TestTestCleanup, cls).getClsTestClient()
cls.apiclient = testClient.getApiClient()
# Setup test data
td = TestData()
logger.debug(td)

cls.services = testClient.getParsedTestDataConfig()

logging.debug("standards")

# Get Zone, Domain
cls.domain = get_domain(cls.apiclient)
logging.debug(cls.domain)
cls.zone = get_zone(cls.apiclient, cls.testClient.getZoneForTests())
logging.debug("standard zone: %s" % cls.zone)

# Build the test env
# create a parent domain
logger.info("Creating domain: " + TestData.parentDomain)
tmpDomain = Domain.create(cls.apiclient,td.testdata["domains"][0])
logger.debug("created domain: %s" % tmpDomain.name  )
cls.parentDomain = Domain.list(cls.apiclient,id=tmpDomain.id)[0]
logger.debug("found just created domain by id %s" % cls.parentDomain.id)
cls._cleanup = [tmpDomain]
# cls._cleanup.append( cls.parentDomain )

for obj in reversed(cls._cleanup):
logger.debug(obj.name)

return

@classmethod
def tearDownClass(cls):
logger.info("Tearing Down Class")
try:
for obj in reversed(cls._cleanup):
logger.debug(obj.name)
obj.delete()
logger.debug("deleted %s " % obj.id)
cleanup_resources(cls.apiClient, reversed(cls._cleanup))
logging.debug("done cleaning up resources in tearDownClass(cls)")
except Exception as e:
logging.debug("Exception in tearDownClass(cls): %s" % e)

def setUp(self):
self.apiclient = self.testClient.getApiClient()
self.hypervisor = self.testClient.getHypervisorInfo()
self.dbclient = self.testClient.getDbConnection()
self.services = self.testClient.getParsedTestDataConfig()
self.zone = get_zone(self.apiclient, self.testClient.getZoneForTests())
self.pod = get_pod(self.apiclient, self.zone.id)

td = TestData()
logger.info("Creating domain: " + TestData.parentDomain)
tmpDomain = Domain.create(self.apiclient,td.testdata["domains"][0])
logger.debug("created domain: %s" % tmpDomain.name  )
self.parentDomain = Domain.list(self.apiclient,id=tmpDomain.id)[0]
logger.debug("found just created domain by id %s" %
self.parentDomain.id)
self.cleanup = [tmpDomain]

for obj in reversed(self.cleanup):
logger.debug(obj.name)
return

def tearDown(self):
logger.info("Tearing Down Object")
try:
for obj in reversed(self.cleanup):
logger.debug(obj.name)
obj.delete()
logger.debug("deleted %s " % obj.id)
cleanup_resources(self.apiclient, reversed(self.cleanup) )
logging.debug("done cleaning up resources in tearDownObject")
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
return

@attr(tags=["smoke", "advanced"], required_hardware="false")
def test_01_manual(self):
return

```
neither the class nor the object cleanup seem to happen. Can anybody see
where I go wrong?

output:
```
2019-10-04 11:38:46,069 INFO Setting up Class
2019-10-04 11:38:46,069 DEBUG

2019-10-04 11:38:46,159 INFO Creating domain: TEST
2019-10-04 11:38:46,252 DEBUG created domain: TEST-GDMX1C
2019-10-04 11:38:46,300 DEBUG found just created domain by id
f6c0113f-a7ef-4547-87d4-d3ac98ef3e73
2019-10-04 11:38:46,300 DEBUG TEST-GDMX1C
2019-10-04 11:38:46,362 INFO Creating domain: TEST
2019-10-04 11:38:46,460 

RE: [DISCUSS] Short "marketing" video project

2019-10-04 Thread Giles Sirett
I love the video Andrija

Very good point Julia - we also have a whole of catalogue community video 
content hosted in the Shapeblue channel - simply because there was nowhere else 
to put it
For CCC the last  2 years,  we've worked with Rich Bowen to get conference 
talks into the Apache channel, but that’s only really fits  because CCC has 
been part of Apachecon (i.e. it wouldn’t work for "how to" videos) ,etc

If we have people who are creating video content for the project such as this , 
it would probably make sense to create an ACS youtube channel.

Any objections ?

From a practicality side, access to this would need to work in a similar way to 
the ACS twitter account: the account owner is a PMC email address, allowing 
password resets from the PMC as a group. The actual login credentials  then 
held by a small subset of people who actually publish.

This is a bigger decsison than Andrijas one specific  video IMO and should have 
its own discuss thread , but keen to see initial thoughts here first





Kind regards
Giles

giles.sir...@shapeblue.com 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue
  
 


-Original Message-
From: Andrija Panic  
Sent: 03 October 2019 18:58
To: Apache CloudStack Marketing 
Cc: users ; dev 
Subject: Re: [DISCUSS] Short "marketing" video project

I believe I saw that video - very nice work Julia.

I believe, by (very) lazy consensus (a.k.a. if no objections), that I will add 
that video to the main web site.

Cheers
Andrija


On Thu, 3 Oct 2019 at 14:56, Julia Simon  wrote:

> Hi,
>
> We ran in to this issue a few years ago when we hosted the CloudStack 
> Collab. Videos from that are on our (CloudOps) youtube channel, since 
> there wasn't another place to publish them.
> Julia
>
> On Tue, Oct 1, 2019 at 10:21 AM Andrija Panic 
> 
> wrote:
>
>> Hi guys,
>>
>> this is a little project I've been experimenting last 2 weeks and is
>> **temporarily** located on the ShapeBlue channel.
>>
>> https://youtu.be/k3uD69fajCU
>>
>> Do you have any ideas where we can publish this, in more "official", 
>> CloudStack way?
>>
>> I was thinking about putting this on the main website 
>> http://cloudstack.apache.org
>>
>> Comments, objections, ideas?
>>
>> Best,
>> Andrija
>>
>>
>
> --
>
> *Julia Simon*Responsable principale du marketing *| *Senior Marketing 
> Manager t 514.447.3456 ext. 1103 c 514.993.6661
>
> 
>
>
>


-- 

Andrija Panić


noVNC not committed to 4.13!

2019-10-04 Thread Fariborz Navidan
Hello All,

Several months ago, there was a discussion on integrating noVNC into new
4.13 and one of development said he will commit it into 4.13 but I see
console proxy is using same system as previous. noVNC has several benefits.
It does not repaints the screen making it flashing on low speed connections
and it forwards keys pressed just in the way you are working locally.


Re: noVNC not committed to 4.13!

2019-10-04 Thread Wei ZHOU
Hi Fariborz,

The pull request has been created few months ago.
https://github.com/apache/cloudstack/pull/3296
We will work together on merging it into master (hopefully released in
4.14).

-Wei



On Fri, 4 Oct 2019 at 15:53, Fariborz Navidan  wrote:

> Hello All,
>
> Several months ago, there was a discussion on integrating noVNC into new
> 4.13 and one of development said he will commit it into 4.13 but I see
> console proxy is using same system as previous. noVNC has several benefits.
> It does not repaints the screen making it flashing on low speed connections
> and it forwards keys pressed just in the way you are working locally.
>


[GitHub] [cloudstack-documentation] PaulAngus commented on issue #69: descriptions and examples of auto import and auto sync enabling

2019-10-04 Thread GitBox
PaulAngus commented on issue #69: descriptions and examples of auto import and 
auto sync enabling
URL: 
https://github.com/apache/cloudstack-documentation/pull/69#issuecomment-538412266
 
 
   requesting docbuild
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [cloudstack-documentation] ACSGitBot commented on issue #69: descriptions and examples of auto import and auto sync enabling

2019-10-04 Thread GitBox
ACSGitBot commented on issue #69: descriptions and examples of auto import and 
auto sync enabling
URL: 
https://github.com/apache/cloudstack-documentation/pull/69#issuecomment-538412308
 
 
   Your request had been received, i'll go and build the documentation and 
check the output log for errors.
   
   This shouldn't take long.
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [cloudstack-documentation] ACSGitBot commented on issue #69: descriptions and examples of auto import and auto sync enabling

2019-10-04 Thread GitBox
ACSGitBot commented on issue #69: descriptions and examples of auto import and 
auto sync enabling
URL: 
https://github.com/apache/cloudstack-documentation/pull/69#issuecomment-538412928
 
 
   Build finished.  You can review it at:   
https://acs-www.shapeblue.com/docs/pr69
   
   Build Log Output:
   
   
   No log errors found to report.


This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


Re: noVNC not committed to 4.13!

2019-10-04 Thread Fariborz Navidan
What if I want to create my own system vm template with noVNC support?

On Fri, Oct 4, 2019 at 5:36 PM Wei ZHOU  wrote:

> Hi Fariborz,
>
> The pull request has been created few months ago.
> https://github.com/apache/cloudstack/pull/3296
> We will work together on merging it into master (hopefully released in
> 4.14).
>
> -Wei
>
>
>
> On Fri, 4 Oct 2019 at 15:53, Fariborz Navidan 
> wrote:
>
> > Hello All,
> >
> > Several months ago, there was a discussion on integrating noVNC into new
> > 4.13 and one of development said he will commit it into 4.13 but I see
> > console proxy is using same system as previous. noVNC has several
> benefits.
> > It does not repaints the screen making it flashing on low speed
> connections
> > and it forwards keys pressed just in the way you are working locally.
> >
>


Re: [DISCUSS] Short "marketing" video project

2019-10-04 Thread Will Stevens
I am +1 to an ACS youtube channel.

*Will Stevens*
Chief Technology Officer
c 514.826.0190




On Fri, Oct 4, 2019 at 9:46 AM Giles Sirett 
wrote:

> I love the video Andrija
>
> Very good point Julia - we also have a whole of catalogue community video
> content hosted in the Shapeblue channel - simply because there was nowhere
> else to put it
> For CCC the last  2 years,  we've worked with Rich Bowen to get conference
> talks into the Apache channel, but that’s only really fits  because CCC has
> been part of Apachecon (i.e. it wouldn’t work for "how to" videos) ,etc
>
> If we have people who are creating video content for the project such as
> this , it would probably make sense to create an ACS youtube channel.
>
> Any objections ?
>
> From a practicality side, access to this would need to work in a similar
> way to the ACS twitter account: the account owner is a PMC email address,
> allowing password resets from the PMC as a group. The actual login
> credentials  then held by a small subset of people who actually publish.
>
> This is a bigger decsison than Andrijas one specific  video IMO and should
> have its own discuss thread , but keen to see initial thoughts here first
>
>
>
>
>
> Kind regards
> Giles
>
> giles.sir...@shapeblue.com
> www.shapeblue.com
> Amadeus House, Floral Street, London  WC2E 9DPUK
> @shapeblue
>
>
>
>
> -Original Message-
> From: Andrija Panic 
> Sent: 03 October 2019 18:58
> To: Apache CloudStack Marketing 
> Cc: users ; dev 
> Subject: Re: [DISCUSS] Short "marketing" video project
>
> I believe I saw that video - very nice work Julia.
>
> I believe, by (very) lazy consensus (a.k.a. if no objections), that I will
> add that video to the main web site.
>
> Cheers
> Andrija
>
>
> On Thu, 3 Oct 2019 at 14:56, Julia Simon  wrote:
>
> > Hi,
> >
> > We ran in to this issue a few years ago when we hosted the CloudStack
> > Collab. Videos from that are on our (CloudOps) youtube channel, since
> > there wasn't another place to publish them.
> > Julia
> >
> > On Tue, Oct 1, 2019 at 10:21 AM Andrija Panic
> > 
> > wrote:
> >
> >> Hi guys,
> >>
> >> this is a little project I've been experimenting last 2 weeks and is
> >> **temporarily** located on the ShapeBlue channel.
> >>
> >> https://youtu.be/k3uD69fajCU
> >>
> >> Do you have any ideas where we can publish this, in more "official",
> >> CloudStack way?
> >>
> >> I was thinking about putting this on the main website
> >> http://cloudstack.apache.org
> >>
> >> Comments, objections, ideas?
> >>
> >> Best,
> >> Andrija
> >>
> >>
> >
> > --
> >
> > *Julia Simon*Responsable principale du marketing *| *Senior Marketing
> > Manager t 514.447.3456 ext. 1103 c 514.993.6661
> >
> > 
> >
> >
> >
>
>
> --
>
> Andrija Panić
>


Re: [DISCUSS] Short "marketing" video project

2019-10-04 Thread David Nalley
Like this one?
https://www.youtube.com/user/cloudstack/about

I think Karen had creds to this.

On Fri, Oct 4, 2019 at 11:04 AM Will Stevens  wrote:
>
> I am +1 to an ACS youtube channel.
>
> *Will Stevens*
> Chief Technology Officer
> c 514.826.0190
>
> 
>
>
> On Fri, Oct 4, 2019 at 9:46 AM Giles Sirett 
> wrote:
>
> > I love the video Andrija
> >
> > Very good point Julia - we also have a whole of catalogue community video
> > content hosted in the Shapeblue channel - simply because there was nowhere
> > else to put it
> > For CCC the last  2 years,  we've worked with Rich Bowen to get conference
> > talks into the Apache channel, but that’s only really fits  because CCC has
> > been part of Apachecon (i.e. it wouldn’t work for "how to" videos) ,etc
> >
> > If we have people who are creating video content for the project such as
> > this , it would probably make sense to create an ACS youtube channel.
> >
> > Any objections ?
> >
> > From a practicality side, access to this would need to work in a similar
> > way to the ACS twitter account: the account owner is a PMC email address,
> > allowing password resets from the PMC as a group. The actual login
> > credentials  then held by a small subset of people who actually publish.
> >
> > This is a bigger decsison than Andrijas one specific  video IMO and should
> > have its own discuss thread , but keen to see initial thoughts here first
> >
> >
> >
> >
> >
> > Kind regards
> > Giles
> >
> > giles.sir...@shapeblue.com
> > www.shapeblue.com
> > Amadeus House, Floral Street, London  WC2E 9DPUK
> > @shapeblue
> >
> >
> >
> >
> > -Original Message-
> > From: Andrija Panic 
> > Sent: 03 October 2019 18:58
> > To: Apache CloudStack Marketing 
> > Cc: users ; dev 
> > Subject: Re: [DISCUSS] Short "marketing" video project
> >
> > I believe I saw that video - very nice work Julia.
> >
> > I believe, by (very) lazy consensus (a.k.a. if no objections), that I will
> > add that video to the main web site.
> >
> > Cheers
> > Andrija
> >
> >
> > On Thu, 3 Oct 2019 at 14:56, Julia Simon  wrote:
> >
> > > Hi,
> > >
> > > We ran in to this issue a few years ago when we hosted the CloudStack
> > > Collab. Videos from that are on our (CloudOps) youtube channel, since
> > > there wasn't another place to publish them.
> > > Julia
> > >
> > > On Tue, Oct 1, 2019 at 10:21 AM Andrija Panic
> > > 
> > > wrote:
> > >
> > >> Hi guys,
> > >>
> > >> this is a little project I've been experimenting last 2 weeks and is
> > >> **temporarily** located on the ShapeBlue channel.
> > >>
> > >> https://youtu.be/k3uD69fajCU
> > >>
> > >> Do you have any ideas where we can publish this, in more "official",
> > >> CloudStack way?
> > >>
> > >> I was thinking about putting this on the main website
> > >> http://cloudstack.apache.org
> > >>
> > >> Comments, objections, ideas?
> > >>
> > >> Best,
> > >> Andrija
> > >>
> > >>
> > >
> > > --
> > >
> > > *Julia Simon*Responsable principale du marketing *| *Senior Marketing
> > > Manager t 514.447.3456 ext. 1103 c 514.993.6661
> > >
> > > 
> > >
> > >
> > >
> >
> >
> > --
> >
> > Andrija Panić
> >