Problem with dns on stakiq

20 views
Skip to first unread message

Soporte Modemat

unread,
Jun 19, 2019, 4:35:01 PM6/19/19
to stacki
Hello.

I need your help because my dns doesn´t work  in stackiq because of this error:

[root@quinde mar]# stack sync dns
  File "/usr/sbin/stack", line 402, in run_command
    rc = command.runWrapper(name, args[i:])
  File "/opt/stack/lib/python2.6/site-packages/stack/commands/command.py", line 2318, in runWrapper
    rc = self.run(self._params, self._args)
  File "/opt/stack/lib/python2.6/site-packages/stack/commands/sync/dns/__init__.py", line 186, in run
    self.runPlugins()
  File "/opt/stack/lib/python2.6/site-packages/stack/commands/command.py", line 1833, in runPlugins
    retval = plugin.run(args)
  File "/opt/stack/lib/python2.6/site-packages/stack/commands/sync/dns/plugin_dns.py", line 137, in run
    o = self.owner.command('report.zones', [])
  File "/opt/stack/lib/python2.6/site-packages/stack/commands/command.py", line 1754, in command
    self.rc = o.runWrapper(name, args, self.level + 1)
  File "/opt/stack/lib/python2.6/site-packages/stack/commands/command.py", line 2318, in runWrapper
    rc = self.run(self._params, self._args)
  File "/opt/stack/lib/python2.6/site-packages/stack/commands/report/zones/__init__.py", line 270, in run
    sn = self.getSubnet(address, mask)
stack.commands.sync.dns: AttributeError -- Command instance has no attribute 'getSubnet'

And when I tried the command: stack report zones

I got this error:

[root@quinde mar]# stack report zones
  File "/usr/sbin/stack", line 402, in run_command
    rc = command.runWrapper(name, args[i:])
  File "/opt/stack/lib/python2.6/site-packages/stack/commands/command.py", line 2318, in runWrapper
    rc = self.run(self._params, self._args)
  File "/opt/stack/lib/python2.6/site-packages/stack/commands/report/zones/__init__.py", line 270, in run
    sn = self.getSubnet(address, mask)
stack.commands.report.zones: AttributeError -- Command instance has no attribute 'getSubnet'

I went to the script at line 270 is this:

 subnet_list = {}
                s = ''
                for network in networks:
                        address = network['address']
                        mask    = network['mask']
                        zone    = network['zone']
                        name    = network['network']

                        sn = self.getSubnet(address, mask)
                        sn.reverse()
                        r_sn = string.join(sn, '.')

                        filename = '/var/named/reverse.%s.domain.%s' % (name, r_sn)
                        s += '<stack:file stack:name="%s" stack:perms="0644">\n' % filename
                        s += preamble_template % (name, name, serial, name, name)
                        s += self.reversehostlines(r_sn, name)
                        s += '</stack:file>\n'

                self.addOutput('', s)
                self.endOutput(padChar = '')

Please can you give me some ideas to solve this problem?



Mason J. Katz

unread,
Jun 20, 2019, 1:23:43 PM6/20/19
to stacki
What is the output of

stack list network?



--
You received this message because you are subscribed to the Google Groups "stacki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stacki+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/stacki/c8be0e08-e034-425e-96d1-4c4415fdd51f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Soporte Modemat

unread,
Jun 21, 2019, 12:00:37 PM6/21/19
to stacki
Hello Mason J.

Thank you so mucho for your intention to help me. Yesterday I solved after researching a lot on Google. Basically what I did was to replace the original file for this one: https://github.com/Teradata/stacki/blob/86b3ecc68867438ed47a41fae4ad7f27f4cc6ecd/common/src/stack/command/stack/commands/report/__init__.py and then I run stack sync dns and it works !!
To unsubscribe from this group and stop receiving emails from it, send an email to sta...@googlegroups.com.

Soporte Modemat

unread,
Jun 21, 2019, 12:01:09 PM6/21/19
to stacki

Soporte Modemat

unread,
Jun 21, 2019, 12:01:42 PM6/21/19
to stacki


On Wednesday, June 19, 2019 at 3:35:01 PM UTC-5, Soporte Modemat wrote:
Reply all
Reply to author
Forward
0 new messages