Skip to content

Export ACL List is missing some data #8862

Closed

Description

@btzq
ISSUE TYPE
  • Improvement Request
COMPONENT NAME
Improvement Request (UI, Functionality)
CLOUDSTACK VERSION
4.19
CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

Note: This ticket is broken down as requested from the origianl post, #8841

Export ACL List is missing some data

  • For example, 'Ports' are not available in the exported CSV when exported.
  • There may be others that are missing from the CSV output too.
  • Exporting the full list as CV makes it very convenient to study, review the rules all at one go using excel.
  • If it paired together with 'Import ACL from CSV' Allow users to import ACL from a CSV File #8858 , it would make ACL much easier to use all round.
STEPS TO REPRODUCE

N/A

N/A
EXPECTED RESULTS
To be able to manage ACL Rules more easily for large scale projects
ACTUAL RESULTS
Challenging to use ACL rules for large scale projects.

Activity

  1. DaanHoogland commented on Apr 11, 2024

    @DaanHoogland
    Contributor

    @btzq , with "export", do you mean the output of a tool like cmk?
    This seems a UI bug; if the first rule does not have start and end port these wont be in the exported CVS.
    Note that the CVS export is a UI feature per se, so no API feature other than the response containing it or not.
    This can be solved in the UI or in response (return -1?). I think UI makes more sense.

  2. btzq commented on Apr 12, 2024

    @btzq
    Author

    @DaanHoogland when i meant 'Export', i meant the existing export function. Exporting via CMK is not required (For us at least).

    My thoughts are that if a ACL rule doesnt have a start and end port, the columns should still be exported anyways with just empty value. Putting as -1 instead of empty value also makes sense.

    Yes i think this is just a UI issue, the data is already there. So this is another low hanging fruit.

  3. added this to the 4.19.1.0 milestone on Apr 30, 2024
  4. shwstppr commented on May 22, 2024

    @shwstppr
    Contributor

    @btzq I tried to check the csv for a rule without any ports and it shows undefined against port column. Is this not correct or am I missing something?
    image

  5. btzq commented on May 23, 2024

    @btzq
    Author

    @shwstppr , what version of Cloudstack are you using? I am unable to export the 'Startport' and 'EndPort' in the xlsx.

    Im using 4.19.0.0

    This is my screenshot:
    Screenshot 2024-05-23 at 9 50 17 pm

    And this is how i exported it:
    Screenshot 2024-05-23 at 9 51 17 pm

  6. weizhouapache commented on May 23, 2024

    @weizhouapache
    Member

    @shwstppr , what version of Cloudstack are you using? I am unable to export the 'Startport' and 'EndPort' in the xlsx.

    Im using 4.19.0.0

    This is my screenshot:
    Screenshot 2024-05-23 at 9 50 17 pm

    And this is how i exported it:
    Screenshot 2024-05-23 at 9 51 17 pm

    Yes, this is consistent with what Daan and me found. It is a ui bug

    If the first rule does not have startport and endport (for example a icmp rule), the exported rules do not have startport and endport.

  7. added a commit that references this issue on May 24, 2024
    9835310
  8. shwstppr commented on May 24, 2024

    @shwstppr
    Contributor

    @btzq cc @weizhouapache I missed the fact that it needs to be the first rule without ports. I was able to reproduce and have create a fix in #9118

  9. self-assigned this
    on May 24, 2024
  10. moved this from Todo to In Progress in Apache CloudStack 4.19.1on May 24, 2024
  11. added a commit that references this issue on May 28, 2024
    c07953c
  12. shwstppr commented on May 28, 2024

    @shwstppr
    Contributor

    Fixed with #9118

  13. added a commit that references this issue on Jun 17, 2024
    3475fb3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions