2025-03-24 16:33:57,609 - INFO - Domain Default found not creating
2025-03-24 16:33:57,759 - INFO - Project ctest-TestBasicPolicy-25838050 not found, creating it
2025-03-24 16:33:58,226 - INFO - Created Project:ctest-TestBasicPolicy-25838050, ID : f3f28092-e4c2-49d9-b26b-033d91d7034f
2025-03-24 16:33:59,689 - INFO - ================================================================================
2025-03-24 16:33:59,689 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-24 16:33:59,690 - 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-03-24 16:33:59,949 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.18': '0'}} with
2025-03-24 16:33:59,949 - INFO - Initial checks done. Running the testcase now
2025-03-24 16:33:59,949 - INFO -
2025-03-24 16:34:00,512 - DEBUG - Response for create_network : {'network': {'id': 'f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7', 'name': 'ctest-vn-71668771', 'tenant_id': 'f3f28092e4c249d9b26b033d91d7034f', 'project_id': 'f3f28092e4c249d9b26b033d91d7034f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25838050', 'ctest-vn-71668771'], 'port_security_enabled': True, 'description': ''}}
2025-03-24 16:34:00,689 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd48eb463-0f24-4f4a-aa0f-596213ed5de8', 'name': '', 'tenant_id': 'f3f28092e4c249d9b26b033d91d7034f', 'network_id': 'f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7', 'ip_version': 4, 'cidr': '220.201.204.192/26', 'allocation_pools': [{'start': '220.201.204.194', 'end': '220.201.204.254'}], 'gateway_ip': '220.201.204.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.201.204.194', 'tags': [], 'project_id': 'f3f28092e4c249d9b26b033d91d7034f'}}
2025-03-24 16:34:00,710 - INFO - Created VN ctest-vn-71668771
2025-03-24 16:34:00,766 - DEBUG - VN ctest-vn-71668771 UUID is f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7
2025-03-24 16:34:01,107 - DEBUG - Response for create_network : {'network': {'id': 'ed5f95ed-e4fd-4a78-bf26-ee3876040afd', 'name': 'ctest-vn-81335258', 'tenant_id': 'f3f28092e4c249d9b26b033d91d7034f', 'project_id': 'f3f28092e4c249d9b26b033d91d7034f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25838050', 'ctest-vn-81335258'], 'port_security_enabled': True, 'description': ''}}
2025-03-24 16:34:01,311 - DEBUG - Response for create_subnet : {'subnet': {'id': 'abcc585f-f302-4f0e-98e5-e7741114b5d1', 'name': '', 'tenant_id': 'f3f28092e4c249d9b26b033d91d7034f', 'network_id': 'ed5f95ed-e4fd-4a78-bf26-ee3876040afd', 'ip_version': 4, 'cidr': '59.34.79.64/26', 'allocation_pools': [{'start': '59.34.79.66', 'end': '59.34.79.126'}], 'gateway_ip': '59.34.79.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.34.79.66', 'tags': [], 'project_id': 'f3f28092e4c249d9b26b033d91d7034f'}}
2025-03-24 16:34:01,331 - INFO - Created VN ctest-vn-81335258
2025-03-24 16:34:01,386 - DEBUG - VN ctest-vn-81335258 UUID is ed5f95ed-e4fd-4a78-bf26-ee3876040afd
2025-03-24 16:34:01,525 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-71668771, 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-25838050:ctest-vn-81335258, 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-03-24 16:34:01,849 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7', 'name': 'ctest-vn-71668771', 'tenant_id': 'f3f28092e4c249d9b26b033d91d7034f', 'project_id': 'f3f28092e4c249d9b26b033d91d7034f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d48eb463-0f24-4f4a-aa0f-596213ed5de8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25838050', 'ctest-vn-71668771'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25838050', 'ctest-policy-allow-all-23939401']], 'subnet_ipam': [{'subnet_cidr': '220.201.204.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-24 16:34:02,100 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ed5f95ed-e4fd-4a78-bf26-ee3876040afd', 'name': 'ctest-vn-81335258', 'tenant_id': 'f3f28092e4c249d9b26b033d91d7034f', 'project_id': 'f3f28092e4c249d9b26b033d91d7034f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['abcc585f-f302-4f0e-98e5-e7741114b5d1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25838050', 'ctest-vn-81335258'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25838050', 'ctest-policy-allow-all-23939401']], 'subnet_ipam': [{'subnet_cidr': '59.34.79.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-24 16:34:02,278 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-03-24 16:34:02,587 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-03-24 16:34:02,626 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0964a1db-9579-4b0b-9f53-d0ff5c0bcc2f
2025-03-24 16:34:02,642 - DEBUG - Requesting: http://10.0.0.31:8082/project/f3f28092-e4c2-49d9-b26b-033d91d7034f
2025-03-24 16:34:02,731 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7
2025-03-24 16:34:02,744 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7
2025-03-24 16:34:02,758 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/822f1539-8420-4cce-9f6a-867261244b74
2025-03-24 16:34:02,767 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/822f1539-8420-4cce-9f6a-867261244b74
2025-03-24 16:34:02,775 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/53278cfe-79f2-4a5d-9420-9f54a211a32a
2025-03-24 16:34:02,783 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-24 16:34:02,783 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7
2025-03-24 16:34:02,795 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/822f1539-8420-4cce-9f6a-867261244b74
2025-03-24 16:34:02,813 - INFO - Verified VN network id 7 for VN f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7
2025-03-24 16:34:02,813 - INFO - Verifications in API Server for VN ctest-vn-71668771 passed
2025-03-24 16:34:02,813 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7
2025-03-24 16:34:02,826 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/822f1539-8420-4cce-9f6a-867261244b74
2025-03-24 16:34:02,834 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/822f1539-8420-4cce-9f6a-867261244b74
2025-03-24 16:34:02,842 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/53278cfe-79f2-4a5d-9420-9f54a211a32a
2025-03-24 16:34:02,856 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-71668771', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25838050', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17732430452367051140', 'uuid-lslong': '12553971067918009031'}, 'enable': 'true', 'created': '2025-03-24T16:34:00', 'last-modified': '2025-03-24T16:34:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.036792'}
2025-03-24 16:34:02,863 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-24 16:34:02,863 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71668771 passed
2025-03-24 16:34:02,863 - DEBUG - ====Verifying policy data for ctest-vn-71668771 in API_Server ======
2025-03-24 16:34:02,864 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-03-24 16:34:02,870 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0964a1db-9579-4b0b-9f53-d0ff5c0bcc2f
2025-03-24 16:34:02,884 - DEBUG - Requesting: http://10.0.0.31:8082/project/f3f28092-e4c2-49d9-b26b-033d91d7034f
2025-03-24 16:34:02,969 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f6163f8b-c5a8-4984-ae38-aa2c27c8c2c7
2025-03-24 16:34:02,985 - DEBUG - ==>Verifying data for policy with id: d6bc7461-e0cd-4e88-9500-f650ecc14462, fqn: ['default-domain', 'ctest-TestBasicPolicy-25838050', 'ctest-policy-allow-all-23939401']
2025-03-24 16:34:02,985 - INFO - VN ctest-vn-71668771 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-24 16:34:02,985 - DEBUG - Verifying the vn in opserver
2025-03-24 16:34:02,986 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-71668771 virtual network link through opserver 10.0.0.31
2025-03-24 16:34:02,986 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-03-24 16:34:03,329 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-03-24 16:34:03,408 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-71668771', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-71668771?flat'}
2025-03-24 16:34:03,409 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-71668771 is found in opserver
2025-03-24 16:34:03,423 - DEBUG - Do not have enough data to verify VN in agent
2025-03-24 16:34:03,430 - DEBUG - VRF ids for VN ctest-vn-71668771: {}
2025-03-24 16:34:03,430 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-03-24 16:34:03,437 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0964a1db-9579-4b0b-9f53-d0ff5c0bcc2f
2025-03-24 16:34:03,451 - DEBUG - Requesting: http://10.0.0.31:8082/project/f3f28092-e4c2-49d9-b26b-033d91d7034f
2025-03-24 16:34:03,539 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ed5f95ed-e4fd-4a78-bf26-ee3876040afd
2025-03-24 16:34:03,557 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ed5f95ed-e4fd-4a78-bf26-ee3876040afd
2025-03-24 16:34:03,571 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/79eeea1a-eeda-4f2b-af73-f1875109f2e0
2025-03-24 16:34:03,582 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/79eeea1a-eeda-4f2b-af73-f1875109f2e0
2025-03-24 16:34:03,592 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/9b3fe35f-c07a-44dd-a1cd-873c3a00abda
2025-03-24 16:34:03,601 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-24 16:34:03,601 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ed5f95ed-e4fd-4a78-bf26-ee3876040afd
2025-03-24 16:34:03,615 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/79eeea1a-eeda-4f2b-af73-f1875109f2e0
2025-03-24 16:34:03,636 - INFO - Verified VN network id 8 for VN ed5f95ed-e4fd-4a78-bf26-ee3876040afd
2025-03-24 16:34:03,636 - INFO - Verifications in API Server for VN ctest-vn-81335258 passed
2025-03-24 16:34:03,636 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ed5f95ed-e4fd-4a78-bf26-ee3876040afd
2025-03-24 16:34:03,650 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/79eeea1a-eeda-4f2b-af73-f1875109f2e0
2025-03-24 16:34:03,660 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/79eeea1a-eeda-4f2b-af73-f1875109f2e0
2025-03-24 16:34:03,670 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/9b3fe35f-c07a-44dd-a1cd-873c3a00abda
2025-03-24 16:34:03,686 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-81335258', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25838050', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17104554758758025848', 'uuid-lslong': '13773958436624796413'}, 'enable': 'true', 'created': '2025-03-24T16:34:01', 'last-modified': '2025-03-24T16:34:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.618267'}
2025-03-24 16:34:03,693 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-24 16:34:03,693 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81335258 passed
2025-03-24 16:34:03,693 - DEBUG - ====Verifying policy data for ctest-vn-81335258 in API_Server ======
2025-03-24 16:34:03,693 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-03-24 16:34:03,700 - DEBUG - Requesting: http://10.0.0.31:8082/domain/0964a1db-9579-4b0b-9f53-d0ff5c0bcc2f
2025-03-24 16:34:03,717 - DEBUG - Requesting: http://10.0.0.31:8082/project/f3f28092-e4c2-49d9-b26b-033d91d7034f
2025-03-24 16:34:03,803 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ed5f95ed-e4fd-4a78-bf26-ee3876040afd
2025-03-24 16:34:03,816 - DEBUG - ==>Verifying data for policy with id: d6bc7461-e0cd-4e88-9500-f650ecc14462, fqn: ['default-domain', 'ctest-TestBasicPolicy-25838050', 'ctest-policy-allow-all-23939401']
2025-03-24 16:34:03,816 - INFO - VN ctest-vn-81335258 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-24 16:34:03,816 - DEBUG - Verifying the vn in opserver
2025-03-24 16:34:03,816 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-81335258 virtual network link through opserver 10.0.0.31
2025-03-24 16:34:03,816 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-03-24 16:34:03,829 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-81335258', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-81335258?flat'}
2025-03-24 16:34:03,829 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25838050:ctest-vn-81335258 is found in opserver
2025-03-24 16:34:03,841 - DEBUG - Do not have enough data to verify VN in agent
2025-03-24 16:34:03,846 - DEBUG - VRF ids for VN ctest-vn-81335258: {}
2025-03-24 16:34:03,911 - DEBUG - Services list from nova: [