[2.2] node-results 'data' returns in clear text and not base64

Bug #1664285 reported by Andres Rodriguez on 2017-02-13
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Critical
Lee Trager

Bug Description

$ maas admin node-results read system_id=ahbphb result_type=1 | grep data

        "data": "Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease\nGet:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]\nGet:3 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB]\nGet:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [474 kB]\nGet:5 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [7176 B]\nGet:6 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [396 kB]\nGet:7 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [211 kB]\nGet:8 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [73.8 kB]\nFetched 1367 kB in 1s (790 kB/s)\nReading package lists...\nReading package lists...\nBuilding dependency tree...\nReading state information...\nThe following additional packages will be installed:\n crda grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common iw\n libfreetype6 libnl-3-200 libnl-genl-3-200 linux-firmware\n linux-headers-4.4.0-62 linux-headers-4.4.0-62-generic linux-headers-generic\n linux-image-4.4.0-62-generic linux-image-extra-4.4.0-62-generic\n linux-image-generic os-prober thermald wireless-regdb\nSuggested packages:\n multiboot-doc grub-emu xorriso desktop-base fdutils linux-doc-4.4.0\n | linux-source-4.4.0 linux-tools\nThe following NEW packages will be installed:\n crda grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common iw\n libfreetype6 libnl-3-200 libnl-genl-3-200 linux-firmware linux-generic\n linux-headers-4.4.0-62 linux-headers-4.4.0-62-generic linux-headers-generic\n linux-image-4.4.0-62-generic linux-image-extra-4.4.0-62-generic\n linux-image-generic os-prober thermald wireless-regdb\n0 upgraded, 21 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 110 MB of archives.\nAfter this operation, 471 MB of additional disk space will be used.\nGet:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 libfreetype6 amd64 2.6.1-0.1ubuntu2 [316 kB]\nGet:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 grub-common amd64 2.02~beta2-36ubuntu3.7 [1705 kB]\nGet:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 grub2-common amd64 2.02~beta2-36ubuntu3.7 [511 kB]\nGet:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 grub-pc-bin amd64 2.02~beta2-36ubuntu3.7 [888 kB]\nGet:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 grub-gfxpayload-lists amd64 0.7 [3658 B]\nGet:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 grub-pc amd64 2.02~beta2-36ubuntu3.7 [197 kB]\nGet:7 http://archive.ubuntu.com/ubuntu xenial/main amd64 libnl-3-200 amd64 3.2.27-1 [52.1 kB]\nGet:8 http://archive.ubuntu.com/ubuntu xenial/main amd64 libnl-genl-3-200 amd64 3.2.27-1 [11.2 kB]\nGet:9 http://archive.ubuntu.com/ubuntu xenial/main amd64 wireless-regdb all 2015.07.20-1ubuntu1 [9058 B]\nGet:10 http://archive.ubuntu.com/ubuntu xenial/main amd64 iw amd64 3.17-1 [63.5 kB]\nGet:11 http://archive.ubuntu.com/ubuntu xenial/main amd64 crda amd64 3.13-1 [60.5 kB]\nGet:12 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-firmware all 1.157.8 [37.7 MB]\nGet:13 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-4.4.0-62-generic amd64 4.4.0-62.83 [21.3 MB]\nGet:14 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-extra-4.4.0-62-generic amd64 4.4.0-62.83 [36.3 MB]\nGet:15 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-generic amd64 4.4.0.62.65 [2290 B]\nGet:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-62 all 4.4.0-62.83 [9907 kB]\nGet:17 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-62-generic amd64 4.4.0-62.83 [773 kB]\nGet:18 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-generic amd64 4.4.0.62.65 [2256 B]\nGet:19 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-generic amd64 4.4.0.62.65 [1784 B]\nGet:20 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 os-prober amd64 1.70ubuntu3.3 [19.1 kB]\nGet:21 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 thermald amd64 1.5-2ubuntu2 [187 kB]\nPreconfiguring packages ...\nFetched 110 MB in 8s (12.7 MB/s)\nE: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)\nSelecting previously unselected package libfreetype6:amd64.\n(Reading database ... 25466 files and directories currently installed.)\nPreparing to unpack .../libfreetype6_2.6.1-0.1ubuntu2_amd64.deb ...\nUnpacking libfreetype6:amd64 (2.6.1-0.1ubuntu2) ...\nSelecting previously unselected package grub-common.\nPreparing to unpack .../grub-common_2.02~beta2-36ubuntu3.7_amd64.deb ...\nUnpacking grub-common (2.02~beta2-36ubuntu3.7) ...\nSelecting previously unselected package grub2-common.\nPreparing to unpack .../grub2-common_2.02~beta2-36ubuntu3.7_amd64.deb ...\nUnpacking grub2-common (2.02~beta2-36ubuntu3.7) ...\nSelecting previously unselected package grub-pc-bin.\nPreparing to unpack .../grub-pc-bin_2.02~beta2-36ubuntu3.7_amd64.deb ...\nUnpacking grub-pc-bin (2.02~beta2-36ubuntu3.7) ...\nSelecting previously unselected package grub-gfxpayload-lists.\nPreparing to unpack .../grub-gfxpayload-lists_0.7_amd64.deb ...\nUnpacking grub-gfxpayload-lists (0.7) ...\nSelecting previously unselected package grub-pc.\nPreparing to unpack .../grub-pc_2.02~beta2-36ubuntu3.7_amd64.deb ...\nUnpacking grub-pc (2.02~beta2-36ubuntu3.7) ...\nSelecting previously unselected package libnl-3-200:amd64.\nPreparing to unpack .../libnl-3-200_3.2.27-1_amd64.deb ...\nUnpacking libnl-3-200:amd64 (3.2.27-1) ...\nSelecting previously unselected package libnl-genl-3-200:amd64.\nPreparing to unpack .../libnl-genl-3-200_3.2.27-1_amd64.deb ...\nUnpacking libnl-genl-3-200:amd64 (3.2.27-1) ...\nSelecting previously unselected package wireless-regdb.\nPreparing to unpack .../wireless-regdb_2015.07.20-1ubuntu1_all.deb ...\nUnpacking wireless-regdb (2015.07.20-1ubuntu1) ...\nSelecting previously unselected package iw.\nPreparing to unpack .../archives/iw_3.17-1_amd64.deb ...\nUnpacking iw (3.17-1) ...\nSelecting previously unselected package crda.\nPreparing to unpack .../archives/crda_3.13-1_amd64.deb ...\nUnpacking crda (3.13-1) ...\nSelecting previously unselected package linux-firmware.\nPreparing to unpack .../linux-firmware_1.157.8_all.deb ...\nUnpacking linux-firmware (1.157.8) ...\nSelecting previously unselected package linux-image-4.4.0-62-generic.\nPreparing to unpack .../linux-image-4.4.0-62-generic_4.4.0-62.83_amd64.deb ...\nDone.\nUnpacking linux-image-4.4.0-62-generic (4.4.0-62.83) ...\nSelecting previously unselected package linux-image-extra-4.4.0-62-generic.\nPreparing to unpack .../linux-image-extra-4.4.0-62-generic_4.4.0-62.83_amd64.deb ...\nUnpacking linux-image-extra-4.4.0-62-generic (4.4.0-62.83) ...\nSelecting previously unselected package linux-image-generic.\nPreparing to unpack .../linux-image-generic_4.4.0.62.65_amd64.deb ...\nUnpacking linux-image-generic (4.4.0.62.65) ...\nSelecting previously unselected package linux-headers-4.4.0-62.\nPreparing to unpack .../linux-headers-4.4.0-62_4.4.0-62.83_all.deb ...\nUnpacking linux-headers-4.4.0-62 (4.4.0-62.83) ...\nSelecting previously unselected package linux-headers-4.4.0-62-generic.\nPreparing to unpack .../linux-headers-4.4.0-62-generic_4.4.0-62.83_amd64.deb ...\nUnpacking linux-headers-4.4.0-62-generic (4.4.0-62.83) ...\nSelecting previously unselected package linux-headers-generic.\nPreparing to unpack .../linux-headers-generic_4.4.0.62.65_amd64.deb ...\nUnpacking linux-headers-generic (4.4.0.62.65) ...\nSelecting previously unselected package linux-generic.\nPreparing to unpack .../linux-generic_4.4.0.62.65_amd64.deb ...\nUnpacking linux-generic (4.4.0.62.65) ...\nSelecting previously unselected package os-prober.\nPreparing to unpack .../os-prober_1.70ubuntu3.3_amd64.deb ...\nUnpacking os-prober (1.70ubuntu3.3) ...\nSelecting previously unselected package thermald.\nPreparing to unpack .../thermald_1.5-2ubuntu2_amd64.deb ...\nUnpacking thermald (1.5-2ubuntu2) ...\nProcessing triggers for libc-bin (2.23-0ubuntu5) ...\nProcessing triggers for systemd (229-4ubuntu16) ...\nProcessing triggers for ureadahead (0.100.0-19) ...\nProcessing triggers for man-db (2.7.5-1) ...\nProcessing triggers for install-info (6.1.0.dfsg.1-5) ...\nProcessing triggers for dbus (1.10.6-1ubuntu3.3) ...\nSetting up libfreetype6:amd64 (2.6.1-0.1ubuntu2) ...\nSetting up grub-common (2.02~beta2-36ubuntu3.7) ...\nupdate-rc.d: warning: start and stop actions are no longer supported; falling back to defaults\nRunning in chroot, ignoring request.\ninvoke-rc.d: policy-rc.d denied execution of start.\nSetting up grub2-common (2.02~beta2-36ubuntu3.7) ...\nSetting up grub-pc-bin (2.02~beta2-36ubuntu3.7) ...\nSetting up libnl-3-200:amd64 (3.2.27-1) ...\nSetting up libnl-genl-3-200:amd64 (3.2.27-1) ...\nSetting up wireless-regdb (2015.07.20-1ubuntu1) ...\nSetting up iw (3.17-1) ...\nSetting up crda (3.13-1) ...\nSetting up linux-firmware (1.157.8) ...\nSetting up linux-image-4.4.0-62-generic (4.4.0-62.83) ...\nRunning depmod.\nupdate-initramfs: deferring update (hook will be called later)\nExamining /etc/kernel/postinst.d.\nrun-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic\nrun-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic\nupdate-initramfs: Generating /boot/initrd.img-4.4.0-62-generic\nW: mdadm: /etc/mdadm/mdadm.conf defines no arrays.\nrun-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic\nrun-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic\nSetting up linux-image-extra-4.4.0-62-generic (4.4.0-62.83) ...\nrun-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic\nrun-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic\nupdate-initramfs: Generating /boot/initrd.img-4.4.0-62-generic\nW: mdadm: /etc/mdadm/mdadm.conf defines no arrays.\nrun-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic\nrun-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-62-generic /boot/vmlinuz-4.4.0-62-generic\nSetting up linux-image-generic (4.4.0.62.65) ...\nSetting up linux-headers-4.4.0-62 (4.4.0-62.83) ...\nSetting up linux-headers-4.4.0-62-generic (4.4.0-62.83) ...\nSetting up linux-headers-generic (4.4.0.62.65) ...\nSetting up linux-generic (4.4.0.62.65) ...\nSetting up os-prober (1.70ubuntu3.3) ...\nSetting up thermald (1.5-2ubuntu2) ...\nRunning in chroot, ignoring request.\ninvoke-rc.d: policy-rc.d denied execution of start.\nSetting up grub-pc (2.02~beta2-36ubuntu3.7) ...\n\nCreating config file /etc/default/grub with new version\nGenerating grub configuration file ...\nFound linux image: /boot/vmlinuz-4.4.0-62-generic\nFound initrd image: /boot/initrd.img-4.4.0-62-generic\n /run/lvm/lvmetad.socket: connect failed: No such file or directory\n WARNING: Failed to connect to lvmetad. Falling back to internal scanning.\ndone\nSetting up grub-gfxpayload-lists (0.7) ...\nProcessing triggers for libc-bin (2.23-0ubuntu5) ...\nProcessing triggers for systemd (229-4ubuntu16) ...\nProcessing triggers for ureadahead (0.100.0-19) ...\nProcessing triggers for dbus (1.10.6-1ubuntu3.3) ...\nSetting up swapspace version 1, size = 4 GiB (4294963200 bytes)\nno label, UUID=0d6af8a7-0f7e-4a06-8f69-f073a2e0b1dd\nDisabling IPv6 privacy extensions config may not apply. /tmp/tmptezqr5dq/target/etc/sysctl.d/10-ipv6-privacy.conf exists, but could not be read.\nTraceback (most recent call last):\n File \"/curtin/curtin/commands/apply_net.py\", line 140, in _disable_ipv6_privacy_extensions\n contents = util.load_file(cfg)\n File \"/curtin/curtin/util.py\", line 328, in load_file\n return fp.read(read_len) if read_len else fp.read()\n File \"/usr/lib/python3.5/encodings/ascii.py\", line 26, in decode\n return codecs.ascii_decode(input, self.errors)[0]\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 277: ordinal not in range(128)\nReplacing config file /etc/default/grub with new version\nGenerating grub configuration file ...\nFound linux image: /boot/vmlinuz-4.4.0-62-generic\nFound initrd image: /boot/initrd.img-4.4.0-62-generic\ndone\nGenerating grub configuration file ...\nFound linux image: /boot/vmlinuz-4.4.0-62-generic\nFound initrd image: /boot/initrd.img-4.4.0-62-generic\ndone\nInstalling for i386-pc platform.\nInstallation finished. No error reported.\n--2017-02-13 15:40:18-- http://10.90.90.1:5240/MAAS/metadata/latest/by-id/ahbphb/\nConnecting to 10.90.90.1:5240... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: unspecified [text/plain]\nSaving to: '/dev/null'\n\n 0K 339K=0s\n\n2017-02-13 15:40:19 (339 KB/s) - '/dev/null' saved [2]\n\ncurtin: Installation finished.\

Related branches

Changed in maas:
importance: Undecided → Critical
assignee: nobody → Lee Trager (ltrager)
milestone: none → 2.2.0
summary: - [2.2] node-results 'data' retusn in clear text and not base64
+ [2.2] node-results 'data' returns in clear text and not base64
tags: added: api-regression-testing
tags: added: regression
Changed in maas:
status: New → Triaged
Changed in maas:
status: Triaged → In Progress
tags: added: cdo-qa-blocker oil
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers