[openstack-dev] [Fuel] Adding code to add node to fuel UI
Satyasanjibani Rautaray
engg.sanj at gmail.com
Thu Dec 18 19:03:54 UTC 2014
Hi Mike
this Document helped a lot
I may be missing something thing for which i need some help below is the
details for which i require some help.
i have a vim.pp file for testing which will install vim on the particular
node which is not a part of controller or compute or any openstack
component nodes
The current zabbix-server under the manager.py did something as below
<snip>
from nailgun.utils.zabbix import ZabbixManager
@classmethod
def get_zabbix_url(cls, cluster):
zabbix_node = ZabbixManager.get_zabbix_node(cluster)
if zabbix_node is None:
return None
ip_cidr = cls.get_node_network_by_netname(
zabbix_node, 'public'
)['ip']
ip = ip_cidr.split('/')[0]
return 'http://{0}/zabbix'.format(ip)
</snip>
at receiver.py
<snip>
zabbix_url = objects.Cluster.get_network_manager(
task.cluster
).get_zabbix_url(task.cluster)
if zabbix_url:
zabbix_suffix = " Access Zabbix dashboard at {0}".format(
zabbix_url
)
message += zabbix_suffix
</snip>
at task.py
<snip>
from nailgun.utils.zabbix import ZabbixManager
# check if there's a zabbix server in an environment
# and if there is, remove hosts
if ZabbixManager.get_zabbix_node(task.cluster):
zabbix_credentials = ZabbixManager.get_zabbix_credentials(
task.cluster
)
logger.debug("Removing nodes %s from zabbix" % (nodes_to_delete))
try:
ZabbixManager.remove_from_zabbix(
zabbix_credentials, nodes_to_delete
)
except (errors.CannotMakeZabbixRequest,
errors.ZabbixRequestError) as e:
logger.warning("%s, skipping removing nodes from Zabbix", e)
</snip>
and
https://review.openstack.org/#/c/84408/39/nailgun/nailgun/utils/zabbix.py
i am not able to get how can i connect to the vim.pp file
Thanks
Satya
On Wed, Dec 17, 2014 at 7:27 AM, Mike Scherbakov <mscherbakov at mirantis.com>
wrote:
>
> Hi,
> did you come across
> http://docs.mirantis.com/fuel-dev/develop/addition_examples.html ?
>
> I believe it should cover your use case.
>
> Thanks,
>
> On Tue, Dec 16, 2014 at 11:43 PM, Satyasanjibani Rautaray <
> engg.sanj at gmail.com> wrote:
>>
>> I just need to deploy the node and install my required packages.
>> On 17-Dec-2014 1:31 am, "Andrey Danin" <adanin at mirantis.com> wrote:
>>
>>> Hello.
>>>
>>> What version of Fuel do you use? Did you reupload openstack.yaml into
>>> Nailgun? Do you want just to deploy an operating system and configure a
>>> network on a new node?
>>>
>>> I would really appreciate if you use a period at the end of sentences.
>>>
>>> On Tuesday, December 16, 2014, Satyasanjibani Rautaray <
>>> engg.sanj at gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> *i am in a process of creating an additional node by editing the code
>>>> where the new node will be solving a different propose than installing
>>>> openstack components just for testing currently the new node will install
>>>> vim for me please help me what else i need to look into to create the
>>>> complete setup and deploy with fuel i have edited openstack.yaml at
>>>> /root/fuel-web/nailgun/nailgun/fixtures http://pastebin.com/P1MmDBzP
>>>> <http://pastebin.com/P1MmDBzP>*
>>>> --
>>>> Thanks
>>>> Satya
>>>> Mob:9844101001
>>>>
>>>> No one is the best by birth, Its his brain/ knowledge which make him
>>>> the best.
>>>>
>>>
>>>
>>> --
>>> Andrey Danin
>>> adanin at mirantis.com
>>> skype: gcon.monolake
>>>
>>>
>>> _______________________________________________
>>> OpenStack-dev mailing list
>>> OpenStack-dev at lists.openstack.org
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>
>>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
> --
> Mike Scherbakov
> #mihgen
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
--
Thanks
Satya
Mob:9844101001
No one is the best by birth, Its his brain/ knowledge which make him the
best.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141219/a61049ee/attachment-0001.html>
More information about the OpenStack-dev
mailing list