2025-02-11 06:56:14,587 - INFO - Domain Default found not creating
2025-02-11 06:56:14,725 - INFO - Project ctest-TestBasicPolicy-70172313 not found, creating it
2025-02-11 06:56:15,419 - INFO - Created Project:ctest-TestBasicPolicy-70172313, ID : dc3f63ae-1948-4f02-a126-ed6849fcfa9f
2025-02-11 06:56:16,968 - INFO - ================================================================================
2025-02-11 06:56:16,968 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-11 06:56:16,968 - 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-11 06:56:17,232 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.13': '0'}} with
2025-02-11 06:56:17,232 - INFO - Initial checks done. Running the testcase now
2025-02-11 06:56:17,232 - INFO -
2025-02-11 06:56:17,783 - DEBUG - Response for create_network : {'network': {'id': '54fc6cb0-8fbb-45e7-921e-bd3dfefe7119', 'name': 'ctest-vn-64132486', 'tenant_id': 'dc3f63ae19484f02a126ed6849fcfa9f', 'project_id': 'dc3f63ae19484f02a126ed6849fcfa9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70172313', 'ctest-vn-64132486'], 'port_security_enabled': True, 'description': ''}}
2025-02-11 06:56:18,001 - DEBUG - Response for create_subnet : {'subnet': {'id': '068a47b1-3417-48c4-98a6-9bc25cc45fba', 'name': '', 'tenant_id': 'dc3f63ae19484f02a126ed6849fcfa9f', 'network_id': '54fc6cb0-8fbb-45e7-921e-bd3dfefe7119', 'ip_version': 4, 'cidr': '209.238.63.0/26', 'allocation_pools': [{'start': '209.238.63.2', 'end': '209.238.63.62'}], 'gateway_ip': '209.238.63.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.238.63.2', 'tags': [], 'project_id': 'dc3f63ae19484f02a126ed6849fcfa9f'}}
2025-02-11 06:56:18,019 - INFO - Created VN ctest-vn-64132486
2025-02-11 06:56:18,070 - DEBUG - VN ctest-vn-64132486 UUID is 54fc6cb0-8fbb-45e7-921e-bd3dfefe7119
2025-02-11 06:56:18,365 - DEBUG - Response for create_network : {'network': {'id': '8258ac04-0f8a-4580-ba72-29e836fb8b2d', 'name': 'ctest-vn-86843742', 'tenant_id': 'dc3f63ae19484f02a126ed6849fcfa9f', 'project_id': 'dc3f63ae19484f02a126ed6849fcfa9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70172313', 'ctest-vn-86843742'], 'port_security_enabled': True, 'description': ''}}
2025-02-11 06:56:18,529 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4b05f6d-7787-4e9a-bca3-54b33c70f3dd', 'name': '', 'tenant_id': 'dc3f63ae19484f02a126ed6849fcfa9f', 'network_id': '8258ac04-0f8a-4580-ba72-29e836fb8b2d', 'ip_version': 4, 'cidr': '30.191.38.64/26', 'allocation_pools': [{'start': '30.191.38.66', 'end': '30.191.38.126'}], 'gateway_ip': '30.191.38.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.191.38.66', 'tags': [], 'project_id': 'dc3f63ae19484f02a126ed6849fcfa9f'}}
2025-02-11 06:56:18,547 - INFO - Created VN ctest-vn-86843742
2025-02-11 06:56:18,602 - DEBUG - VN ctest-vn-86843742 UUID is 8258ac04-0f8a-4580-ba72-29e836fb8b2d
2025-02-11 06:56:18,754 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70172313:ctest-vn-64132486, 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-70172313:ctest-vn-86843742, 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-11 06:56:19,058 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54fc6cb0-8fbb-45e7-921e-bd3dfefe7119', 'name': 'ctest-vn-64132486', 'tenant_id': 'dc3f63ae19484f02a126ed6849fcfa9f', 'project_id': 'dc3f63ae19484f02a126ed6849fcfa9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['068a47b1-3417-48c4-98a6-9bc25cc45fba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70172313', 'ctest-vn-64132486'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70172313', 'ctest-policy-allow-all-09444128']], 'subnet_ipam': [{'subnet_cidr': '209.238.63.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-11 06:56:19,292 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8258ac04-0f8a-4580-ba72-29e836fb8b2d', 'name': 'ctest-vn-86843742', 'tenant_id': 'dc3f63ae19484f02a126ed6849fcfa9f', 'project_id': 'dc3f63ae19484f02a126ed6849fcfa9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e4b05f6d-7787-4e9a-bca3-54b33c70f3dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70172313', 'ctest-vn-86843742'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70172313', 'ctest-policy-allow-all-09444128']], 'subnet_ipam': [{'subnet_cidr': '30.191.38.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-11 06:56:19,466 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-02-11 06:56:19,755 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-02-11 06:56:19,782 - DEBUG - Requesting: http://10.0.0.31:8082/domain/638466fb-1176-48e4-81ea-54324fd44d13
2025-02-11 06:56:19,794 - DEBUG - Requesting: http://10.0.0.31:8082/project/dc3f63ae-1948-4f02-a126-ed6849fcfa9f
2025-02-11 06:56:19,868 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/54fc6cb0-8fbb-45e7-921e-bd3dfefe7119
2025-02-11 06:56:19,879 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/54fc6cb0-8fbb-45e7-921e-bd3dfefe7119
2025-02-11 06:56:19,889 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/64841133-ef2f-46f3-a276-260f2fd6d229
2025-02-11 06:56:19,896 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/64841133-ef2f-46f3-a276-260f2fd6d229
2025-02-11 06:56:19,903 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/b5ae6387-4b20-459b-8b86-59d2b7c3ab5b
2025-02-11 06:56:19,908 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-11 06:56:19,908 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/54fc6cb0-8fbb-45e7-921e-bd3dfefe7119
2025-02-11 06:56:19,918 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/64841133-ef2f-46f3-a276-260f2fd6d229
2025-02-11 06:56:19,932 - INFO - Verified VN network id 9 for VN 54fc6cb0-8fbb-45e7-921e-bd3dfefe7119
2025-02-11 06:56:19,932 - INFO - Verifications in API Server for VN ctest-vn-64132486 passed
2025-02-11 06:56:19,932 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/54fc6cb0-8fbb-45e7-921e-bd3dfefe7119
2025-02-11 06:56:19,943 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/64841133-ef2f-46f3-a276-260f2fd6d229
2025-02-11 06:56:19,949 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/64841133-ef2f-46f3-a276-260f2fd6d229
2025-02-11 06:56:19,956 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/b5ae6387-4b20-459b-8b86-59d2b7c3ab5b
2025-02-11 06:56:19,967 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70172313:ctest-vn-64132486', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70172313', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6123889098898490855', 'uuid-lslong': '10529061052807541017'}, 'enable': 'true', 'created': '2025-02-11T06:56:17', 'last-modified': '2025-02-11T06:56:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.930845'}
2025-02-11 06:56:19,973 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-11 06:56:19,973 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64132486 passed
2025-02-11 06:56:19,973 - DEBUG - ====Verifying policy data for ctest-vn-64132486 in API_Server ======
2025-02-11 06:56:19,973 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-02-11 06:56:19,979 - DEBUG - Requesting: http://10.0.0.31:8082/domain/638466fb-1176-48e4-81ea-54324fd44d13
2025-02-11 06:56:19,990 - DEBUG - Requesting: http://10.0.0.31:8082/project/dc3f63ae-1948-4f02-a126-ed6849fcfa9f
2025-02-11 06:56:20,060 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/54fc6cb0-8fbb-45e7-921e-bd3dfefe7119
2025-02-11 06:56:20,070 - DEBUG - ==>Verifying data for policy with id: 8c970ba1-5694-47f1-853a-0a103d97ba2c, fqn: ['default-domain', 'ctest-TestBasicPolicy-70172313', 'ctest-policy-allow-all-09444128']
2025-02-11 06:56:20,070 - INFO - VN ctest-vn-64132486 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-11 06:56:20,070 - DEBUG - Verifying the vn in opserver
2025-02-11 06:56:20,070 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70172313:ctest-vn-64132486 virtual network link through opserver 10.0.0.31
2025-02-11 06:56:20,070 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-02-11 06:56:20,359 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-02-11 06:56:20,690 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70172313:ctest-vn-64132486', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70172313:ctest-vn-64132486?flat'}
2025-02-11 06:56:20,691 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70172313:ctest-vn-64132486 is found in opserver
2025-02-11 06:56:20,702 - DEBUG - Do not have enough data to verify VN in agent
2025-02-11 06:56:20,707 - DEBUG - VRF ids for VN ctest-vn-64132486: {}
2025-02-11 06:56:20,707 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-02-11 06:56:20,713 - DEBUG - Requesting: http://10.0.0.31:8082/domain/638466fb-1176-48e4-81ea-54324fd44d13
2025-02-11 06:56:20,726 - DEBUG - Requesting: http://10.0.0.31:8082/project/dc3f63ae-1948-4f02-a126-ed6849fcfa9f
2025-02-11 06:56:20,804 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/8258ac04-0f8a-4580-ba72-29e836fb8b2d
2025-02-11 06:56:20,816 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/8258ac04-0f8a-4580-ba72-29e836fb8b2d
2025-02-11 06:56:20,826 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a2340a6f-4622-4462-9d67-806262a5e2d4
2025-02-11 06:56:20,833 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a2340a6f-4622-4462-9d67-806262a5e2d4
2025-02-11 06:56:20,839 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/b699c3ee-a8ed-42b6-89b5-6f746734a132
2025-02-11 06:56:20,845 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-11 06:56:20,845 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/8258ac04-0f8a-4580-ba72-29e836fb8b2d
2025-02-11 06:56:20,854 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a2340a6f-4622-4462-9d67-806262a5e2d4
2025-02-11 06:56:20,867 - INFO - Verified VN network id 10 for VN 8258ac04-0f8a-4580-ba72-29e836fb8b2d
2025-02-11 06:56:20,867 - INFO - Verifications in API Server for VN ctest-vn-86843742 passed
2025-02-11 06:56:20,867 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/8258ac04-0f8a-4580-ba72-29e836fb8b2d
2025-02-11 06:56:20,876 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a2340a6f-4622-4462-9d67-806262a5e2d4
2025-02-11 06:56:20,883 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/a2340a6f-4622-4462-9d67-806262a5e2d4
2025-02-11 06:56:20,889 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/b699c3ee-a8ed-42b6-89b5-6f746734a132
2025-02-11 06:56:20,900 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70172313:ctest-vn-86843742', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70172313', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9392446156321736064', 'uuid-lslong': '13434846715731217197'}, 'enable': 'true', 'created': '2025-02-11T06:56:18', 'last-modified': '2025-02-11T06:56:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.629767'}
2025-02-11 06:56:20,906 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-11 06:56:20,906 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86843742 passed
2025-02-11 06:56:20,906 - DEBUG - ====Verifying policy data for ctest-vn-86843742 in API_Server ======
2025-02-11 06:56:20,907 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-02-11 06:56:20,912 - DEBUG - Requesting: http://10.0.0.31:8082/domain/638466fb-1176-48e4-81ea-54324fd44d13
2025-02-11 06:56:20,923 - DEBUG - Requesting: http://10.0.0.31:8082/project/dc3f63ae-1948-4f02-a126-ed6849fcfa9f
2025-02-11 06:56:20,997 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/8258ac04-0f8a-4580-ba72-29e836fb8b2d
2025-02-11 06:56:21,010 - DEBUG - ==>Verifying data for policy with id: 8c970ba1-5694-47f1-853a-0a103d97ba2c, fqn: ['default-domain', 'ctest-TestBasicPolicy-70172313', 'ctest-policy-allow-all-09444128']
2025-02-11 06:56:21,010 - INFO - VN ctest-vn-86843742 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-11 06:56:21,010 - DEBUG - Verifying the vn in opserver
2025-02-11 06:56:21,010 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70172313:ctest-vn-86843742 virtual network link through opserver 10.0.0.31
2025-02-11 06:56:21,010 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-02-11 06:56:21,022 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70172313:ctest-vn-86843742', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70172313:ctest-vn-86843742?flat'}
2025-02-11 06:56:21,022 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70172313:ctest-vn-86843742 is found in opserver
2025-02-11 06:56:21,033 - DEBUG - Do not have enough data to verify VN in agent
2025-02-11 06:56:21,038 - DEBUG - VRF ids for VN ctest-vn-86843742: {}
2025-02-11 06:56:21,093 - DEBUG - Services list from nova: [