Wednesday, August 14, 2019

Zun on devstack: mysql issue



Are you getting below error while installing 'zun' on devstack? Then run the following command.

ERROR 1045 (28000): Access denied for user 'root'@'localhost'

sudo mysqladmin -u root password

Tuesday, August 13, 2019

Issues I faced when I tried installing "ZUN" on devstack(ubuntu based)

When I tried installing "zun" on my devstack. I got following errors.

stack@naveenr-VirtualBox:~/zun$ tox -egenconfig
genconfig create: /opt/stack/zun/.tox/venv
genconfig installdeps: -chttps://releases.openstack.org/constraints/upper/master, -r/opt/stack/zun/requirements.txt, -r/opt/stack/zun/test-requirements.txt
ERROR: invocation failed (exit code 1), logfile: /opt/stack/zun/.tox/venv/log/genconfig-1.log
==================================================================================================== log start ====================================================================================================
_____________________________________________________________________________________________________ summary _____________________________________________________________________________________________________
  genconfig: commands succeeded
  congratulations :)
Traceback (most recent call last):
  File "/usr/local/bin/tox", line 11, in
    sys.exit(cmdline())
  File "/usr/local/lib/python2.7/dist-packages/tox/session/__init__.py", line 44, in cmdline
    main(args)
  File "/usr/local/lib/python2.7/dist-packages/tox/session/__init__.py", line 68, in main
    exit_code = session.runcommand()
  File "/usr/local/lib/python2.7/dist-packages/tox/session/__init__.py", line 192, in runcommand
    return self.subcommand_test()
  File "/usr/local/lib/python2.7/dist-packages/tox/session/__init__.py", line 220, in subcommand_test
    run_sequential(self.config, self.venv_dict)
  File "/usr/local/lib/python2.7/dist-packages/tox/session/commands/run/sequential.py", line 9, in run_sequential
    if venv.setupenv():
  File "/usr/local/lib/python2.7/dist-packages/tox/venv.py", line 594, in setupenv
    status = self.update(action=action)
  File "/usr/local/lib/python2.7/dist-packages/tox/venv.py", line 257, in update
    self.hook.tox_testenv_install_deps(action=action, venv=self)
  File "/usr/local/lib/python2.7/dist-packages/pluggy/hooks.py", line 289, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pluggy/manager.py", line 87, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pluggy/manager.py", line 81, in
    firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
  File "/usr/local/lib/python2.7/dist-packages/pluggy/callers.py", line 208, in _multicall
    return outcome.get_result()
  File "/usr/local/lib/python2.7/dist-packages/pluggy/callers.py", line 81, in get_result
    _reraise(*ex)  # noqa
  File "/usr/local/lib/python2.7/dist-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/usr/local/lib/python2.7/dist-packages/tox/venv.py", line 740, in tox_testenv_install_deps
    venv._install(deps, action=action)
  File "/usr/local/lib/python2.7/dist-packages/tox/venv.py", line 457, in _install
    self.run_install_command(packages=packages, options=options, action=action)
  File "/usr/local/lib/python2.7/dist-packages/tox/venv.py", line 407, in run_install_command
    env=env,
  File "/usr/local/lib/python2.7/dist-packages/tox/venv.py", line 574, in _pcall
    report_fail=not is_test_command,
  File "/usr/local/lib/python2.7/dist-packages/tox/action.py", line 121, in popen
    reporter.quiet(output)
  File "/usr/local/lib/python2.7/dist-packages/tox/reporter.py", line 123, in quiet
    self.logline_if(Verbosity.QUIET, "quiet", msg)
  File "/usr/local/lib/python2.7/dist-packages/tox/reporter.py", line 74, in logline_if
    message = str(msg) if key is None else "{}{}".format(key, msg)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2018' in position 56414: ordinal not in range(128)


The issue here is not the UnicodeEncodeError, when I checked the log file given by tox in the beginning(file /opt/stack/zun/.tox/venv/log/genconfig-1.log), it was due to "python.h" not found.

After I installed python3-dev packages the following file got installed with it the issue got resolved.

$ ls /usr/include/python3.6m/Python.h 
/usr/include/python3.6m/Python.h

Very few files were getting showed up earlier.

$ ls /usr/include/python3.6m
Imaging.h  ImagingUtils.h  ImDib.h  ImPlatform.h


Monday, August 12, 2019

How do I login to CoreOS installation.

After installing my CoreOS for the first time. I was startled to see login prompt. I tried various default passwords nothing worked. Thanks to following blog, here is what worked for me. https://www.netroby.com/view/3795


If you just installed CoreOS, you do not set password, Now you have a chance to set it up again.
Once you see the boot screen , press keyboard, let grub menu hang up.
and type e, to enter edit mode.
you may see console=tty0 and etc,
Just put these code insert after it

coreos.autologin=tty1 coreos.autologin=ttyS0
And press F10 to boot system, now you have the chance to set up your password.