Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-108473

'>' not supported between instances of 'str' and 'Version'

    XMLWordPrintable

    Details

      Description

      truenas# midclt call -job chart.release.create '{"catalog": "OFFICIAL", "train": "test", "item": "ix-chart", "values": {"image":

      {"repository": "adguard/adguardhome"}

      , "portForwar
      dingList": [

      {"containerPort": "3000", "nodePort": "9330"}

      ], "volumes": [

      {"datasetName": "config", "mountPath": "/opt/adguardhome/work"}

      ,

      {"datasetName": "config", "mountPath": "/o pt/adguardhome/conf"}

      ], "workloadType": "Deployment"}, "version": "2010.0.2", "release_name": "adguardhome"}'
      Status: (none)
      Total Progress: [________________________________________] 0.00%
      '>' not supported between instances of 'str' and 'Version'
      Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/middlewared/job.py", line 372, in run
      await self.future
      File "/usr/lib/python3/dist-packages/middlewared/job.py", line 408, in __run_body
      rv = await self.method(*([self] + args))
      File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1022, in nf
      return await f(*args, **kwargs)
      File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 196, in do_create
      if await self.query([['id', '=', data['release_name']]]):
      File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1022, in nf
      return await f(*args, **kwargs)
      File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 134, in query
      release_data['update_available'] = latest_version > current_version
      TypeError: '>' not supported between instances of 'str' and 'Version'

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                waqar Waqar Ahmed
                Reporter:
                Q_Hao Hao
                Watchers:
                Bug Clerk, Hao, Waqar Ahmed, William Grzybowski
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: