Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding host - service with same name #675

Open
gummigudm opened this issue May 23, 2022 · 1 comment
Open

Adding host - service with same name #675

gummigudm opened this issue May 23, 2022 · 1 comment

Comments

@gummigudm
Copy link

gummigudm commented May 23, 2022

Adding host without a template, results in a service of the same name as the host, being created.
Example can be seen under OK adagios host config for rt01.okhysing.is

@HJSK
Copy link

HJSK commented Dec 4, 2023

I had same, but little different : copy host from existing host, change Name & IP and got error :
Should work when I copy a host which is already from 1 of the other hosts in NEMS.

This is the error I got :

Traceback (most recent call last):
File "/opt/adagios/adagios/views.py", line 44, in wrapper
result = view_func(request, *args, **kwargs)
File "/opt/adagios/adagios/objectbrowser/views.py", line 710, in copy_object
f.save()
File "/opt/adagios/adagios/objectbrowser/forms.py", line 595, in save
tmp = self.pynag_object.copy(**self.cleaned_data)
File "/opt/adagios/venv/lib/python3.9/site-packages/pynag/Model/init.py", line 1766, in copy
copies = [ObjectDefinition.copy(self, recursive=recursive, filename=filename, **args)]
File "/opt/adagios/venv/lib/python3.9/site-packages/pynag/Model/init.py", line 957, in copy
new_object.save()
File "/opt/adagios/venv/lib/python3.9/site-packages/pynag/Utils/decorators.py", line 22, in newFunction
return f(*args, **kw)
File "/opt/adagios/venv/lib/python3.9/site-packages/pynag/Model/init.py", line 798, in save
self._event(level='pre_save', message="%s '%s'." % (self.object_type, self['shortname']))
File "/opt/adagios/venv/lib/python3.9/site-packages/pynag/Model/init.py", line 1534, in _event
i.pre_save(object_definition=self, message=message)
File "/opt/adagios/venv/lib/python3.9/site-packages/pynag/Model/EventHandlers/init.py", line 219, in pre_save
if self._is_dirty(filename):
File "/opt/adagios/venv/lib/python3.9/site-packages/pynag/Model/EventHandlers/init.py", line 238, in _is_dirty
output = self._run_command(command)
File "/opt/adagios/venv/lib/python3.9/site-packages/pynag/Model/EventHandlers/init.py", line 173, in _run_command
raise EventHandlerError(errorstring, errorcode=returncode, errorstring=stderr)
pynag.Model.EventHandlers.EventHandlerError: fatal: not a git repository (or any of the parent directories): .git

Further when want to make a notification to NEMSlinux (by button on same page below)

NEMS page not found by making a  wish

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

No branches or pull requests

2 participants