2025-02-13 16:56:13,786 - INFO - Domain Default found not creating
2025-02-13 16:56:13,954 - INFO - Project ctest-TestBasicPolicy-45653459 not found, creating it
2025-02-13 16:56:14,437 - INFO - Created Project:ctest-TestBasicPolicy-45653459, ID : 00dc355c-c57a-479e-a656-523f6f091c38
2025-02-13 16:56:15,976 - INFO - ================================================================================
2025-02-13 16:56:15,976 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-13 16:56:15,976 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-02-13 16:56:16,236 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.7': '0'}} with
2025-02-13 16:56:16,236 - INFO - Initial checks done. Running the testcase now
2025-02-13 16:56:16,236 - INFO -
2025-02-13 16:56:16,816 - DEBUG - Response for create_network : {'network': {'id': '346774e0-90b1-4342-82e6-242d975c61a6', 'name': 'ctest-vn-49180090', 'tenant_id': '00dc355cc57a479ea656523f6f091c38', 'project_id': '00dc355cc57a479ea656523f6f091c38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45653459', 'ctest-vn-49180090'], 'port_security_enabled': True, 'description': ''}}
2025-02-13 16:56:17,034 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee48761e-6035-49c3-9c8f-7516f7f65102', 'name': '', 'tenant_id': '00dc355cc57a479ea656523f6f091c38', 'network_id': '346774e0-90b1-4342-82e6-242d975c61a6', 'ip_version': 4, 'cidr': '156.201.252.64/26', 'allocation_pools': [{'start': '156.201.252.66', 'end': '156.201.252.126'}], 'gateway_ip': '156.201.252.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.201.252.66', 'tags': [], 'project_id': '00dc355cc57a479ea656523f6f091c38'}}
2025-02-13 16:56:17,059 - INFO - Created VN ctest-vn-49180090
2025-02-13 16:56:17,113 - DEBUG - VN ctest-vn-49180090 UUID is 346774e0-90b1-4342-82e6-242d975c61a6
2025-02-13 16:56:17,435 - DEBUG - Response for create_network : {'network': {'id': '002378d0-55ac-4e7d-a8ea-d95cd814c6a2', 'name': 'ctest-vn-18764976', 'tenant_id': '00dc355cc57a479ea656523f6f091c38', 'project_id': '00dc355cc57a479ea656523f6f091c38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45653459', 'ctest-vn-18764976'], 'port_security_enabled': True, 'description': ''}}
2025-02-13 16:56:17,608 - DEBUG - Response for create_subnet : {'subnet': {'id': '3801e259-6620-4d3b-8d46-2d3b8dead3e9', 'name': '', 'tenant_id': '00dc355cc57a479ea656523f6f091c38', 'network_id': '002378d0-55ac-4e7d-a8ea-d95cd814c6a2', 'ip_version': 4, 'cidr': '139.149.229.128/26', 'allocation_pools': [{'start': '139.149.229.130', 'end': '139.149.229.190'}], 'gateway_ip': '139.149.229.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.149.229.130', 'tags': [], 'project_id': '00dc355cc57a479ea656523f6f091c38'}}
2025-02-13 16:56:17,628 - INFO - Created VN ctest-vn-18764976
2025-02-13 16:56:17,681 - DEBUG - VN ctest-vn-18764976 UUID is 002378d0-55ac-4e7d-a8ea-d95cd814c6a2
2025-02-13 16:56:17,804 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45653459:ctest-vn-49180090, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45653459:ctest-vn-18764976, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-02-13 16:56:18,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '346774e0-90b1-4342-82e6-242d975c61a6', 'name': 'ctest-vn-49180090', 'tenant_id': '00dc355cc57a479ea656523f6f091c38', 'project_id': '00dc355cc57a479ea656523f6f091c38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee48761e-6035-49c3-9c8f-7516f7f65102'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45653459', 'ctest-vn-49180090'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45653459', 'ctest-policy-allow-all-46685313']], 'subnet_ipam': [{'subnet_cidr': '156.201.252.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-13 16:56:18,392 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '002378d0-55ac-4e7d-a8ea-d95cd814c6a2', 'name': 'ctest-vn-18764976', 'tenant_id': '00dc355cc57a479ea656523f6f091c38', 'project_id': '00dc355cc57a479ea656523f6f091c38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3801e259-6620-4d3b-8d46-2d3b8dead3e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45653459', 'ctest-vn-18764976'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45653459', 'ctest-policy-allow-all-46685313']], 'subnet_ipam': [{'subnet_cidr': '139.149.229.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-13 16:56:18,541 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-02-13 16:56:18,839 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-02-13 16:56:18,871 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fea8f582-5be3-48bd-a42b-79fa7828e9c3
2025-02-13 16:56:18,885 - DEBUG - Requesting: http://10.0.0.33:8082/project/00dc355c-c57a-479e-a656-523f6f091c38
2025-02-13 16:56:18,965 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/346774e0-90b1-4342-82e6-242d975c61a6
2025-02-13 16:56:18,978 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/346774e0-90b1-4342-82e6-242d975c61a6
2025-02-13 16:56:18,995 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7063a531-fa52-4820-b3c1-ce2781622631
2025-02-13 16:56:19,004 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7063a531-fa52-4820-b3c1-ce2781622631
2025-02-13 16:56:19,014 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/fa5255b4-ce80-4bbc-b7fe-079eb36d57f3
2025-02-13 16:56:19,024 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-13 16:56:19,024 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/346774e0-90b1-4342-82e6-242d975c61a6
2025-02-13 16:56:19,035 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7063a531-fa52-4820-b3c1-ce2781622631
2025-02-13 16:56:19,052 - INFO - Verified VN network id 8 for VN 346774e0-90b1-4342-82e6-242d975c61a6
2025-02-13 16:56:19,052 - INFO - Verifications in API Server for VN ctest-vn-49180090 passed
2025-02-13 16:56:19,052 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/346774e0-90b1-4342-82e6-242d975c61a6
2025-02-13 16:56:19,064 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7063a531-fa52-4820-b3c1-ce2781622631
2025-02-13 16:56:19,072 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7063a531-fa52-4820-b3c1-ce2781622631
2025-02-13 16:56:19,081 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/fa5255b4-ce80-4bbc-b7fe-079eb36d57f3
2025-02-13 16:56:19,095 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45653459:ctest-vn-49180090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45653459', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3776115320422482754', 'uuid-lslong': '9432266247805624742'}, 'enable': 'true', 'created': '2025-02-13T16:56:16', 'last-modified': '2025-02-13T16:56:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.019324'}
2025-02-13 16:56:19,102 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-13 16:56:19,103 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49180090 passed
2025-02-13 16:56:19,103 - DEBUG - ====Verifying policy data for ctest-vn-49180090 in API_Server ======
2025-02-13 16:56:19,103 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-02-13 16:56:19,109 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fea8f582-5be3-48bd-a42b-79fa7828e9c3
2025-02-13 16:56:19,123 - DEBUG - Requesting: http://10.0.0.33:8082/project/00dc355c-c57a-479e-a656-523f6f091c38
2025-02-13 16:56:19,201 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/346774e0-90b1-4342-82e6-242d975c61a6
2025-02-13 16:56:19,212 - DEBUG - ==>Verifying data for policy with id: a1342c26-0b7e-4a78-a199-fe94e7994ea2, fqn: ['default-domain', 'ctest-TestBasicPolicy-45653459', 'ctest-policy-allow-all-46685313']
2025-02-13 16:56:19,212 - INFO - VN ctest-vn-49180090 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-13 16:56:19,212 - DEBUG - Verifying the vn in opserver
2025-02-13 16:56:19,213 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45653459:ctest-vn-49180090 virtual network link through opserver 10.0.0.33
2025-02-13 16:56:19,213 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-02-13 16:56:19,512 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-02-13 16:56:19,580 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45653459:ctest-vn-49180090', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45653459:ctest-vn-49180090?flat'}
2025-02-13 16:56:19,580 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45653459:ctest-vn-49180090 is found in opserver
2025-02-13 16:56:19,595 - DEBUG - Do not have enough data to verify VN in agent
2025-02-13 16:56:19,601 - DEBUG - VRF ids for VN ctest-vn-49180090: {}
2025-02-13 16:56:19,601 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-02-13 16:56:19,609 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fea8f582-5be3-48bd-a42b-79fa7828e9c3
2025-02-13 16:56:19,625 - DEBUG - Requesting: http://10.0.0.33:8082/project/00dc355c-c57a-479e-a656-523f6f091c38
2025-02-13 16:56:19,710 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/002378d0-55ac-4e7d-a8ea-d95cd814c6a2
2025-02-13 16:56:19,725 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/002378d0-55ac-4e7d-a8ea-d95cd814c6a2
2025-02-13 16:56:19,736 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/63ad9c25-d400-4b35-8f8d-4de7180d50f0
2025-02-13 16:56:19,745 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/63ad9c25-d400-4b35-8f8d-4de7180d50f0
2025-02-13 16:56:19,754 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e357777a-bb3d-4c93-ae40-9dbc61353c5a
2025-02-13 16:56:19,761 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-13 16:56:19,761 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/002378d0-55ac-4e7d-a8ea-d95cd814c6a2
2025-02-13 16:56:19,773 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/63ad9c25-d400-4b35-8f8d-4de7180d50f0
2025-02-13 16:56:19,790 - INFO - Verified VN network id 9 for VN 002378d0-55ac-4e7d-a8ea-d95cd814c6a2
2025-02-13 16:56:19,790 - INFO - Verifications in API Server for VN ctest-vn-18764976 passed
2025-02-13 16:56:19,790 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/002378d0-55ac-4e7d-a8ea-d95cd814c6a2
2025-02-13 16:56:19,804 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/63ad9c25-d400-4b35-8f8d-4de7180d50f0
2025-02-13 16:56:19,812 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/63ad9c25-d400-4b35-8f8d-4de7180d50f0
2025-02-13 16:56:19,823 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e357777a-bb3d-4c93-ae40-9dbc61353c5a
2025-02-13 16:56:19,838 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45653459:ctest-vn-18764976', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45653459', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9984460370759293', 'uuid-lslong': '12171779935707645602'}, 'enable': 'true', 'created': '2025-02-13T16:56:17', 'last-modified': '2025-02-13T16:56:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.505689'}
2025-02-13 16:56:19,846 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-13 16:56:19,846 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18764976 passed
2025-02-13 16:56:19,846 - DEBUG - ====Verifying policy data for ctest-vn-18764976 in API_Server ======
2025-02-13 16:56:19,846 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-02-13 16:56:19,858 - DEBUG - Requesting: http://10.0.0.33:8082/domain/fea8f582-5be3-48bd-a42b-79fa7828e9c3
2025-02-13 16:56:19,873 - DEBUG - Requesting: http://10.0.0.33:8082/project/00dc355c-c57a-479e-a656-523f6f091c38
2025-02-13 16:56:19,960 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/002378d0-55ac-4e7d-a8ea-d95cd814c6a2
2025-02-13 16:56:19,974 - DEBUG - ==>Verifying data for policy with id: a1342c26-0b7e-4a78-a199-fe94e7994ea2, fqn: ['default-domain', 'ctest-TestBasicPolicy-45653459', 'ctest-policy-allow-all-46685313']
2025-02-13 16:56:19,974 - INFO - VN ctest-vn-18764976 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-13 16:56:19,975 - DEBUG - Verifying the vn in opserver
2025-02-13 16:56:19,975 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45653459:ctest-vn-18764976 virtual network link through opserver 10.0.0.33
2025-02-13 16:56:19,975 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-02-13 16:56:19,989 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45653459:ctest-vn-18764976', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45653459:ctest-vn-18764976?flat'}
2025-02-13 16:56:19,989 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45653459:ctest-vn-18764976 is found in opserver
2025-02-13 16:56:20,007 - DEBUG - Do not have enough data to verify VN in agent
2025-02-13 16:56:20,014 - DEBUG - VRF ids for VN ctest-vn-18764976: {}
2025-02-13 16:56:20,094 - DEBUG - Services list from nova: [