openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #19364
Re: Duplication of code in nova and cinder
-
To:
John Griffith <john.griffith@xxxxxxxxxxxxx>, Sam Morrison <sorrison@xxxxxxxxx>
-
From:
Joshua Harlow <harlowja@xxxxxxxxxxxxx>
-
Date:
Tue, 11 Dec 2012 16:56:33 -0800
-
Accept-language:
en-US
-
Acceptlanguage:
en-US
-
Cc:
OpenStack mailing list <openstack@xxxxxxxxxxxxxxxxxxx>
-
In-reply-to:
<CA+qL3LXmYpB8sApQnSbegP=SDKSs8m1nbntrUCo6amdLc+L6zA@mail.gmail.com>
-
Thread-index:
Ac3YA4khZnDv0FicRz61pLL/1PQvuQ==
-
Thread-topic:
[Openstack] Duplication of code in nova and cinder
-
User-agent:
Microsoft-MacOutlook/14.2.3.120616
Related to this, how do we in the future stop such code-copying from happening in the first place?
Is it just that there needs to be a place for this (oslo?) that can be updated more quickly, or something similar?
I'm always sorta 'weirded out' when people say that they copied some code in the name of 'it was quicker' or we are just 'borrowing it'.
From: John Griffith <john.griffith@xxxxxxxxxxxxx<mailto:john.griffith@xxxxxxxxxxxxx>>
Date: Tuesday, December 11, 2012 3:36 PM
To: Sam Morrison <sorrison@xxxxxxxxx<mailto:sorrison@xxxxxxxxx>>
Cc: OpenStack mailing list <openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>>
Subject: Re: [Openstack] Duplication of code in nova and cinder
On Tue, Dec 11, 2012 at 4:24 PM, Sam Morrison <sorrison@xxxxxxxxx<mailto:sorrison@xxxxxxxxx>> wrote:
I attempted to create a volume from an image in cinder and was getting this strange error, turns out it was because I had my glance servers specified as https://glanceserver:9292
In cinder the version of images/glance.py is older than the one in nova and is missing the ssl support additions.
https://bugs.launchpad.net/cinder/+bug/1089147
My real question is why is there one version is nova and one version in cinder. I also think there is quite a bit more unnecessary duplication.
Should it all go into oslo?
Cheers,
Sam
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp
Hi Sam,
Short answer is "yes". Need to check scoping etc and make sure that it does in fact fit within the parameters of OSLO. It's something I thought of a couple weeks ago but to be honest it's been low on my list personally and nobody else that I know of has shown an interest in picking it up.
You'll notice another image related item we're *borrowing* from Nova (cinder.image.image_utils). In both cases there are slight modifications to fit Cinder's use case that given a bit of work could easily be shared.
John
Follow ups
References