Hello,
I am getting the following error when I try to add two repos to a profile. I can save the profile with an individual repo defined though. When more than one is defined I get this error:
--- 2009-04-21 12:40:13,013 - api - Exception occured: cobbler.cexceptions.CX 2009-04-21 12:40:13,013 - api - Exception value: "repo ['RHEL-5-i386-TEST', 'RHEL-5-i386-THIRDPARTY'] is not defined" 2009-04-21 12:40:13,014 - api - Exception Info: File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1567, in _dispatch return method_handle(*params) File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1392, in modify_profile return self.__call_method(obj, attribute, arg) File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1374, in __call_method return method(arg) File "/usr/lib/python2.4/site-packages/cobbler/item_profile.py", line 253, in set_repos return utils.set_repos(self,repos,bypass_check) File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 1123, in set_repos raise CX(_("repo %s is not defined") % r) ---
I see both repos in the repo list:
# cobbler repo list RHEL-5-i386-INTEG RHEL-5-i386-PROD RHEL-5-i386-TEST RHEL-5-i386-UAT RHEL-5-i386-THIRDPARTY
I did do a cobbler reposync after creating the latest repo "RHEL-5-i386-TEST" with cobbler 1.6.3. All other repos where created with previous versions of cobbler.
Can anyone out there help me understand what is going on here?
I am running cobbler 1.6.3 on RHEL 5 x86.
Regards,
Nick
Nicholas Schuetz wrote:
Hello,
I am getting the following error when I try to add two repos to a profile. I can save the profile with an individual repo defined though. When more than one is defined I get this error:
What command are you running?
i.e:
cobbler profile edit --name=foo --repos="name1 name2 name3" ?
2009-04-21 12:40:13,013 - api - Exception occured: cobbler.cexceptions.CX 2009-04-21 12:40:13,013 - api - Exception value: "repo ['RHEL-5-i386-TEST', 'RHEL-5-i386-THIRDPARTY'] is not defined" 2009-04-21 12:40:13,014 - api - Exception Info: File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1567, in _dispatch return method_handle(*params) File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1392, in modify_profile return self.__call_method(obj, attribute, arg) File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1374, in __call_method return method(arg) File "/usr/lib/python2.4/site-packages/cobbler/item_profile.py", line 253, in set_repos return utils.set_repos(self,repos,bypass_check) File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 1123, in set_repos raise CX(_("repo %s is not defined") % r)
I see both repos in the repo list:
# cobbler repo list RHEL-5-i386-INTEG RHEL-5-i386-PROD RHEL-5-i386-TEST RHEL-5-i386-UAT RHEL-5-i386-THIRDPARTY
I did do a cobbler reposync after creating the latest repo "RHEL-5-i386-TEST" with cobbler 1.6.3. All other repos where created with previous versions of cobbler.
Can anyone out there help me understand what is going on here?
I am running cobbler 1.6.3 on RHEL 5 x86.
Regards,
Nick _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
I'm saving a profile in the Cobbler WebUI. I'm not sure which command is run from that:
http://cobblerserver/cobbler/web/?mode=profile_save
On Tue, Apr 21, 2009 at 1:09 PM, Michael DeHaan mdehaan@redhat.com wrote:
Nicholas Schuetz wrote:
Hello,
I am getting the following error when I try to add two repos to a profile. I can save the profile with an individual repo defined though. When more than one is defined I get this error:
What command are you running?
i.e:
cobbler profile edit --name=foo --repos="name1 name2 name3" ?
2009-04-21 12:40:13,013 - api - Exception occured: cobbler.cexceptions.CX 2009-04-21 12:40:13,013 - api - Exception value: "repo ['RHEL-5-i386-TEST', 'RHEL-5-i386-THIRDPARTY'] is not defined" 2009-04-21 12:40:13,014 - api - Exception Info: File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1567, in _dispatch return method_handle(*params) File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1392, in modify_profile return self.__call_method(obj, attribute, arg) File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1374, in __call_method return method(arg) File "/usr/lib/python2.4/site-packages/cobbler/item_profile.py", line 253, in set_repos return utils.set_repos(self,repos,bypass_check) File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 1123, in set_repos raise CX(_("repo %s is not defined") % r)
I see both repos in the repo list:
# cobbler repo list RHEL-5-i386-INTEG RHEL-5-i386-PROD RHEL-5-i386-TEST RHEL-5-i386-UAT RHEL-5-i386-THIRDPARTY
I did do a cobbler reposync after creating the latest repo "RHEL-5-i386-TEST" with cobbler 1.6.3. All other repos where created with previous versions of cobbler.
Can anyone out there help me understand what is going on here?
I am running cobbler 1.6.3 on RHEL 5 x86.
Regards,
Nick _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Nicholas Schuetz wrote:
I'm saving a profile in the Cobbler WebUI. I'm not sure which command is run from that:
When did you create the repos? Also using the webapp or from the CLI? Just then or later?
It may be we have a problem with WebUI persistence, but a bit more details on steps to recreate from the ground up (say a clean restart of cobblerd and a new visit to the webapp) would be useful in trying to repro this.
Should be easy enough to take care of. So far the only caching problem I'm aware of is images still show up in the images list after you delete the image (and only the image) from the CLI.
--Michael
On Tue, Apr 21, 2009 at 1:09 PM, Michael DeHaan mdehaan@redhat.com wrote:
Nicholas Schuetz wrote:
Hello,
I am getting the following error when I try to add two repos to a profile. I can save the profile with an individual repo defined though. When more than one is defined I get this error:
What command are you running?
i.e:
cobbler profile edit --name=foo --repos="name1 name2 name3" ?
2009-04-21 12:40:13,013 - api - Exception occured: cobbler.cexceptions.CX 2009-04-21 12:40:13,013 - api - Exception value: "repo ['RHEL-5-i386-TEST', 'RHEL-5-i386-THIRDPARTY'] is not defined" 2009-04-21 12:40:13,014 - api - Exception Info: File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1567, in _dispatch return method_handle(*params) File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1392, in modify_profile return self.__call_method(obj, attribute, arg) File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1374, in __call_method return method(arg) File "/usr/lib/python2.4/site-packages/cobbler/item_profile.py", line 253, in set_repos return utils.set_repos(self,repos,bypass_check) File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 1123, in set_repos raise CX(_("repo %s is not defined") % r)
I see both repos in the repo list:
# cobbler repo list RHEL-5-i386-INTEG RHEL-5-i386-PROD RHEL-5-i386-TEST RHEL-5-i386-UAT RHEL-5-i386-THIRDPARTY
I did do a cobbler reposync after creating the latest repo "RHEL-5-i386-TEST" with cobbler 1.6.3. All other repos where created with previous versions of cobbler.
Can anyone out there help me understand what is going on here?
I am running cobbler 1.6.3 on RHEL 5 x86.
Regards,
Nick _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
The previous repos were created from 1.4 branch via the WebUI a month or two ago. Just today I created another one using 1.6.3's WebUI.
I was able to accomplish editing the profile using the CLI example you gave:
cobbler profile edit --name=MYPROFILE --repos="RHEL-5-i386-TEST RHEL-5-i386-THIRDPARTY"
On Tue, Apr 21, 2009 at 1:26 PM, Michael DeHaan mdehaan@redhat.com wrote:
Nicholas Schuetz wrote:
I'm saving a profile in the Cobbler WebUI. I'm not sure which command is run from that:
When did you create the repos? Also using the webapp or from the CLI? Just then or later?
It may be we have a problem with WebUI persistence, but a bit more details on steps to recreate from the ground up (say a clean restart of cobblerd and a new visit to the webapp) would be useful in trying to repro this.
Should be easy enough to take care of. So far the only caching problem I'm aware of is images still show up in the images list after you delete the image (and only the image) from the CLI.
--Michael
On Tue, Apr 21, 2009 at 1:09 PM, Michael DeHaan mdehaan@redhat.com wrote:
Nicholas Schuetz wrote:
Hello,
I am getting the following error when I try to add two repos to a profile. I can save the profile with an individual repo defined though. When more than one is defined I get this error:
What command are you running?
i.e:
cobbler profile edit --name=foo --repos="name1 name2 name3" ?
2009-04-21 12:40:13,013 - api - Exception occured: cobbler.cexceptions.CX 2009-04-21 12:40:13,013 - api - Exception value: "repo ['RHEL-5-i386-TEST', 'RHEL-5-i386-THIRDPARTY'] is not defined" 2009-04-21 12:40:13,014 - api - Exception Info: File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1567, in _dispatch return method_handle(*params) File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1392, in modify_profile return self.__call_method(obj, attribute, arg) File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1374, in __call_method return method(arg) File "/usr/lib/python2.4/site-packages/cobbler/item_profile.py", line 253, in set_repos return utils.set_repos(self,repos,bypass_check) File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 1123, in set_repos raise CX(_("repo %s is not defined") % r)
I see both repos in the repo list:
# cobbler repo list RHEL-5-i386-INTEG RHEL-5-i386-PROD RHEL-5-i386-TEST RHEL-5-i386-UAT RHEL-5-i386-THIRDPARTY
I did do a cobbler reposync after creating the latest repo "RHEL-5-i386-TEST" with cobbler 1.6.3. All other repos where created with previous versions of cobbler.
Can anyone out there help me understand what is going on here?
I am running cobbler 1.6.3 on RHEL 5 x86.
Regards,
Nick _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Nicholas Schuetz wrote:
The previous repos were created from 1.4 branch via the WebUI a month or two ago. Just today I created another one using 1.6.3's WebUI.
I was able to accomplish editing the profile using the CLI example you gave:
cobbler profile edit --name=MYPROFILE --repos="RHEL-5-i386-TEST RHEL-5-i386-THIRDPARTY"
Just to be clear before I test this ... You created a new repo via the web app, and then went to edit the profile in the web app to reference the new repo?
--Michael
Yes exactly. At first I did not run the cobbler reposync though.
1.) Create Repo with WebUI and Save. 2.) Alter Existing Profile and Try to Save.
Side Question: Why is running cobbler reposync from cron recommended? Why not run that as part as the WebUI repo_save function? And if running it from cron is recommended should there be a --quite flag added to that command?
On Tue, Apr 21, 2009 at 2:15 PM, Michael DeHaan mdehaan@redhat.com wrote:
Nicholas Schuetz wrote:
The previous repos were created from 1.4 branch via the WebUI a month or two ago. Just today I created another one using 1.6.3's WebUI.
I was able to accomplish editing the profile using the CLI example you gave:
cobbler profile edit --name=MYPROFILE --repos="RHEL-5-i386-TEST RHEL-5-i386-THIRDPARTY"
Just to be clear before I test this ... You created a new repo via the web app, and then went to edit the profile in the web app to reference the new repo?
--Michael _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Sorry: 2.) Alter Existing Profile with WebUI and Try to Save.
On Tue, Apr 21, 2009 at 2:46 PM, Nicholas Schuetz cobbler@thelinuxshack.com wrote:
Yes exactly. At first I did not run the cobbler reposync though.
1.) Create Repo with WebUI and Save. 2.) Alter Existing Profile and Try to Save.
Side Question: Why is running cobbler reposync from cron recommended? Why not run that as part as the WebUI repo_save function? And if running it from cron is recommended should there be a --quite flag added to that command?
On Tue, Apr 21, 2009 at 2:15 PM, Michael DeHaan mdehaan@redhat.com wrote:
Nicholas Schuetz wrote:
The previous repos were created from 1.4 branch via the WebUI a month or two ago. Just today I created another one using 1.6.3's WebUI.
I was able to accomplish editing the profile using the CLI example you gave:
cobbler profile edit --name=MYPROFILE --repos="RHEL-5-i386-TEST RHEL-5-i386-THIRDPARTY"
Just to be clear before I test this ... You created a new repo via the web app, and then went to edit the profile in the web app to reference the new repo?
--Michael _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Nicholas Schuetz wrote:
Yes exactly. At first I did not run the cobbler reposync though.
1.) Create Repo with WebUI and Save. 2.) Alter Existing Profile and Try to Save.
Side Question: Why is running cobbler reposync from cron recommended? Why not run that as part as the WebUI repo_save function? And if running it from cron is recommended should there be a --quite flag added to that command?
It's not run from there because you might want to make a lot of edits and then reposync when you were done (it's slow) or need to make changes, but there's an open Trac item for at least creating the repo config files for reposync when the repo is edited versus just at reposync time.
Running on cron is fine, you could redirect stdout if you wanted, I suppose, so you didn't get the email. You would want to know about error conditions though and still get a report if there were any. I'd recommend something like a reposync.log file, perhaps?
--Michael
On Tue, Apr 21, 2009 at 2:15 PM, Michael DeHaan mdehaan@redhat.com wrote:
Nicholas Schuetz wrote:
The previous repos were created from 1.4 branch via the WebUI a month or two ago. Just today I created another one using 1.6.3's WebUI.
I was able to accomplish editing the profile using the CLI example you gave:
cobbler profile edit --name=MYPROFILE --repos="RHEL-5-i386-TEST RHEL-5-i386-THIRDPARTY"
Just to be clear before I test this ... You created a new repo via the web app, and then went to edit the profile in the web app to reference the new repo?
--Michael _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
cobbler@lists.fedorahosted.org