question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Attempting to create volume group via CLI.

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az netappfiles volume-group create

Errors:

The command failed with an unexpected error. Here is the traceback:
'VolumeGroupsOperations' object has no attribute 'resource_groups'
Traceback (most recent call last):
  File "/opt/az/lib/python3.10/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 663, in execute
    raise ex
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 718, in _run_job
    return cmd_copy.exception_handler(ex)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/netappfiles/_exception_handler.py", line 18, in netappfiles_exception_handler
    raise ex
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 697, in _run_job
    result = cmd_copy(params)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 333, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/netappfiles/custom.py", line 571, in create_volume_group
    location = client.resource_groups.get(resource_group_name).location
AttributeError: 'VolumeGroupsOperations' object has no attribute 'resource_groups'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here…
  • az netappfiles volume-group create -g {} --account-name {} --pool-name {} --volume-group-name {} --vnet {} --ppg {} --sap-sid {}

Expected Behavior

Environment Summary

Linux-5.4.0-1080-azure-x86_64-with-glibc2.28 (Cloud Shell), Common Base Linux Delridge (quinault)
Python 3.10.4
Installer: DEB

azure-cli 2.37.0

Extensions:
aem 0.3.0
ai-examples 0.2.5
ssh 1.1.1

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Additional Context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ynot-commitcommented, Jun 15, 2022

Hi Rakesh, Yes, this (location) is an easy attribute to add. Thank you all for the quick resolution.

1reaction
hildurhoddcommented, Jun 8, 2022

Hi @RakeshMohanMSFT, This is a bug on our end, this is happening when location is not provided. In the latest release the option to not send in location was added in several operations. I will backport it as soon as possible. Workaround is to use the location parameter.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 5. LVM Administration with CLI Commands
This chapter summarizes the individual administrative tasks you can perform with the LVM Command Line Interface (CLI) commands to create and maintain ...
Read more >
Creating a volume group - YouTube
This video is part of a course titled Linux LVM Fundamentals using Ubuntu 18.04. Here is a link to the course: ...
Read more >
mkvg Command - IBM
The mkvg command creates a new volume group, by using the physical volumes that are represented by the physicalvolume parameter. After creating the...
Read more >
How To Use LVM To Manage Storage Devices on Ubuntu 18.04
To create a new volume group from LVM physical volumes, use the vgcreate command. You will have to provide a volume group name, ......
Read more >
Using LVM to manage physical volumes, volume groups, and ...
If we intend to use a disk as LVM physical volume only, we don't need to create partition on it first. The next...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found