2025-04-08 14:29:30,870 - INFO - Domain Default found not creating
2025-04-08 14:29:31,026 - INFO - Project ctest-TestBasicPolicy-26124965 not found, creating it
2025-04-08 14:29:31,477 - INFO - Created Project:ctest-TestBasicPolicy-26124965, ID : a27115ef-190d-4fd0-9a15-2d1a728b6c9a
2025-04-08 14:29:32,961 - INFO - ================================================================================
2025-04-08 14:29:32,961 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-08 14:29:32,961 - 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-04-08 14:29:33,221 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.20.0.21': '0'}} with
2025-04-08 14:29:33,221 - INFO - Initial checks done. Running the testcase now
2025-04-08 14:29:33,221 - INFO -
2025-04-08 14:29:33,821 - DEBUG - Response for create_network : {'network': {'id': 'fe15f480-163d-44e8-8f04-064c1f7f1495', 'name': 'ctest-vn-50975351', 'tenant_id': 'a27115ef190d4fd09a152d1a728b6c9a', 'project_id': 'a27115ef190d4fd09a152d1a728b6c9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26124965', 'ctest-vn-50975351'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 14:29:34,040 - DEBUG - Response for create_subnet : {'subnet': {'id': '3fcabbcf-18ed-4a8c-98d7-8dcbe157ff5e', 'name': '', 'tenant_id': 'a27115ef190d4fd09a152d1a728b6c9a', 'network_id': 'fe15f480-163d-44e8-8f04-064c1f7f1495', 'ip_version': 4, 'cidr': '97.91.161.192/26', 'allocation_pools': [{'start': '97.91.161.194', 'end': '97.91.161.254'}], 'gateway_ip': '97.91.161.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.91.161.194', 'tags': [], 'project_id': 'a27115ef190d4fd09a152d1a728b6c9a'}}
2025-04-08 14:29:34,058 - INFO - Created VN ctest-vn-50975351
2025-04-08 14:29:34,110 - DEBUG - VN ctest-vn-50975351 UUID is fe15f480-163d-44e8-8f04-064c1f7f1495
2025-04-08 14:29:34,429 - DEBUG - Response for create_network : {'network': {'id': '21f4f0e9-1a40-40f8-bdda-80487e4a36f4', 'name': 'ctest-vn-80670038', 'tenant_id': 'a27115ef190d4fd09a152d1a728b6c9a', 'project_id': 'a27115ef190d4fd09a152d1a728b6c9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26124965', 'ctest-vn-80670038'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 14:29:34,622 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1ac8086-bb1d-4989-a892-7fea8a8eb459', 'name': '', 'tenant_id': 'a27115ef190d4fd09a152d1a728b6c9a', 'network_id': '21f4f0e9-1a40-40f8-bdda-80487e4a36f4', 'ip_version': 4, 'cidr': '16.233.39.192/26', 'allocation_pools': [{'start': '16.233.39.194', 'end': '16.233.39.254'}], 'gateway_ip': '16.233.39.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.233.39.194', 'tags': [], 'project_id': 'a27115ef190d4fd09a152d1a728b6c9a'}}
2025-04-08 14:29:34,639 - INFO - Created VN ctest-vn-80670038
2025-04-08 14:29:34,694 - DEBUG - VN ctest-vn-80670038 UUID is 21f4f0e9-1a40-40f8-bdda-80487e4a36f4
2025-04-08 14:29:34,846 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26124965:ctest-vn-50975351, 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-26124965:ctest-vn-80670038, 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-04-08 14:29:35,150 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe15f480-163d-44e8-8f04-064c1f7f1495', 'name': 'ctest-vn-50975351', 'tenant_id': 'a27115ef190d4fd09a152d1a728b6c9a', 'project_id': 'a27115ef190d4fd09a152d1a728b6c9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3fcabbcf-18ed-4a8c-98d7-8dcbe157ff5e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26124965', 'ctest-vn-50975351'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26124965', 'ctest-policy-allow-all-45586577']], 'subnet_ipam': [{'subnet_cidr': '97.91.161.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 14:29:35,388 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21f4f0e9-1a40-40f8-bdda-80487e4a36f4', 'name': 'ctest-vn-80670038', 'tenant_id': 'a27115ef190d4fd09a152d1a728b6c9a', 'project_id': 'a27115ef190d4fd09a152d1a728b6c9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c1ac8086-bb1d-4989-a892-7fea8a8eb459'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26124965', 'ctest-vn-80670038'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26124965', 'ctest-policy-allow-all-45586577']], 'subnet_ipam': [{'subnet_cidr': '16.233.39.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 14:29:35,551 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-04-08 14:29:35,854 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-04-08 14:29:35,882 - DEBUG - Requesting: http://10.0.0.46:8082/domain/b9b09fe9-8c01-4dba-8594-b5e0931ec90e
2025-04-08 14:29:35,895 - DEBUG - Requesting: http://10.0.0.46:8082/project/a27115ef-190d-4fd0-9a15-2d1a728b6c9a
2025-04-08 14:29:35,966 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/fe15f480-163d-44e8-8f04-064c1f7f1495
2025-04-08 14:29:35,977 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/fe15f480-163d-44e8-8f04-064c1f7f1495
2025-04-08 14:29:35,987 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/6999484a-9fb5-4600-9e9f-8c3d1b5da960
2025-04-08 14:29:35,994 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/6999484a-9fb5-4600-9e9f-8c3d1b5da960
2025-04-08 14:29:36,002 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/f226ddeb-35d0-4aa5-a3fa-7b8e6e665ece
2025-04-08 14:29:36,009 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 14:29:36,009 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/fe15f480-163d-44e8-8f04-064c1f7f1495
2025-04-08 14:29:36,019 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/6999484a-9fb5-4600-9e9f-8c3d1b5da960
2025-04-08 14:29:36,033 - INFO - Verified VN network id 9 for VN fe15f480-163d-44e8-8f04-064c1f7f1495
2025-04-08 14:29:36,033 - INFO - Verifications in API Server for VN ctest-vn-50975351 passed
2025-04-08 14:29:36,033 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/fe15f480-163d-44e8-8f04-064c1f7f1495
2025-04-08 14:29:36,043 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/6999484a-9fb5-4600-9e9f-8c3d1b5da960
2025-04-08 14:29:36,050 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/6999484a-9fb5-4600-9e9f-8c3d1b5da960
2025-04-08 14:29:36,058 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/f226ddeb-35d0-4aa5-a3fa-7b8e6e665ece
2025-04-08 14:29:36,071 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26124965:ctest-vn-50975351', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26124965', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18308808691110724840', 'uuid-lslong': '10305368771346240661'}, 'enable': 'true', 'created': '2025-04-08T14:29:33', 'last-modified': '2025-04-08T14:29:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944759'}
2025-04-08 14:29:36,079 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 14:29:36,079 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50975351 passed
2025-04-08 14:29:36,079 - DEBUG - ====Verifying policy data for ctest-vn-50975351 in API_Server ======
2025-04-08 14:29:36,080 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-04-08 14:29:36,086 - DEBUG - Requesting: http://10.0.0.46:8082/domain/b9b09fe9-8c01-4dba-8594-b5e0931ec90e
2025-04-08 14:29:36,098 - DEBUG - Requesting: http://10.0.0.46:8082/project/a27115ef-190d-4fd0-9a15-2d1a728b6c9a
2025-04-08 14:29:36,170 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/fe15f480-163d-44e8-8f04-064c1f7f1495
2025-04-08 14:29:36,183 - DEBUG - ==>Verifying data for policy with id: 789e93a3-64df-4d1e-a5fd-b70f805cb109, fqn: ['default-domain', 'ctest-TestBasicPolicy-26124965', 'ctest-policy-allow-all-45586577']
2025-04-08 14:29:36,183 - INFO - VN ctest-vn-50975351 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 14:29:36,183 - DEBUG - Verifying the vn in opserver
2025-04-08 14:29:36,183 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26124965:ctest-vn-50975351 virtual network link through opserver 10.0.0.46
2025-04-08 14:29:36,183 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-04-08 14:29:36,479 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-04-08 14:29:36,534 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26124965:ctest-vn-50975351', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26124965:ctest-vn-50975351?flat'}
2025-04-08 14:29:36,534 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26124965:ctest-vn-50975351 is found in opserver
2025-04-08 14:29:36,545 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 14:29:36,550 - DEBUG - VRF ids for VN ctest-vn-50975351: {}
2025-04-08 14:29:36,550 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-04-08 14:29:36,556 - DEBUG - Requesting: http://10.0.0.46:8082/domain/b9b09fe9-8c01-4dba-8594-b5e0931ec90e
2025-04-08 14:29:36,569 - DEBUG - Requesting: http://10.0.0.46:8082/project/a27115ef-190d-4fd0-9a15-2d1a728b6c9a
2025-04-08 14:29:36,647 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/21f4f0e9-1a40-40f8-bdda-80487e4a36f4
2025-04-08 14:29:36,659 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/21f4f0e9-1a40-40f8-bdda-80487e4a36f4
2025-04-08 14:29:36,669 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d5eca8bf-9f1c-4086-96cf-d7678cf72da5
2025-04-08 14:29:36,677 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d5eca8bf-9f1c-4086-96cf-d7678cf72da5
2025-04-08 14:29:36,684 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/03ff30f6-19c4-4e60-98b5-f9355623dbbc
2025-04-08 14:29:36,691 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-08 14:29:36,691 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/21f4f0e9-1a40-40f8-bdda-80487e4a36f4
2025-04-08 14:29:36,702 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d5eca8bf-9f1c-4086-96cf-d7678cf72da5
2025-04-08 14:29:36,723 - INFO - Verified VN network id 10 for VN 21f4f0e9-1a40-40f8-bdda-80487e4a36f4
2025-04-08 14:29:36,723 - INFO - Verifications in API Server for VN ctest-vn-80670038 passed
2025-04-08 14:29:36,723 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/21f4f0e9-1a40-40f8-bdda-80487e4a36f4
2025-04-08 14:29:36,736 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d5eca8bf-9f1c-4086-96cf-d7678cf72da5
2025-04-08 14:29:36,743 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/d5eca8bf-9f1c-4086-96cf-d7678cf72da5
2025-04-08 14:29:36,783 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/03ff30f6-19c4-4e60-98b5-f9355623dbbc
2025-04-08 14:29:36,810 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26124965:ctest-vn-80670038', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26124965', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2446845381527486712', 'uuid-lslong': '13680387866936096500'}, 'enable': 'true', 'created': '2025-04-08T14:29:34', 'last-modified': '2025-04-08T14:29:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.442707'}
2025-04-08 14:29:36,817 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-08 14:29:36,817 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80670038 passed
2025-04-08 14:29:36,817 - DEBUG - ====Verifying policy data for ctest-vn-80670038 in API_Server ======
2025-04-08 14:29:36,817 - DEBUG - Requesting: http://10.0.0.46:8082/domains
2025-04-08 14:29:36,842 - DEBUG - Requesting: http://10.0.0.46:8082/domain/b9b09fe9-8c01-4dba-8594-b5e0931ec90e
2025-04-08 14:29:36,914 - DEBUG - Requesting: http://10.0.0.46:8082/project/a27115ef-190d-4fd0-9a15-2d1a728b6c9a
2025-04-08 14:29:37,019 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/21f4f0e9-1a40-40f8-bdda-80487e4a36f4
2025-04-08 14:29:37,035 - DEBUG - ==>Verifying data for policy with id: 789e93a3-64df-4d1e-a5fd-b70f805cb109, fqn: ['default-domain', 'ctest-TestBasicPolicy-26124965', 'ctest-policy-allow-all-45586577']
2025-04-08 14:29:37,035 - INFO - VN ctest-vn-80670038 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 14:29:37,035 - DEBUG - Verifying the vn in opserver
2025-04-08 14:29:37,035 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26124965:ctest-vn-80670038 virtual network link through opserver 10.0.0.46
2025-04-08 14:29:37,035 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks
2025-04-08 14:29:37,059 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26124965:ctest-vn-80670038', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26124965:ctest-vn-80670038?flat'}
2025-04-08 14:29:37,059 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26124965:ctest-vn-80670038 is found in opserver
2025-04-08 14:29:37,071 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 14:29:37,083 - DEBUG - VRF ids for VN ctest-vn-80670038: {}
2025-04-08 14:29:37,155 - DEBUG - Services list from nova: [