2024-11-08 11:28:57,991 - INFO - Domain Default found not creating
2024-11-08 11:28:58,162 - INFO - Project ctest-TestBasicPolicy-39223560 not found, creating it
2024-11-08 11:28:58,671 - INFO - Created Project:ctest-TestBasicPolicy-39223560, ID : c7d52bd4-d3ff-46bf-a9b3-2daa458454e5
2024-11-08 11:29:00,257 - INFO - ================================================================================
2024-11-08 11:29:00,257 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-08 11:29:00,257 - 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
2024-11-08 11:29:00,513 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.7': '0'}} with
2024-11-08 11:29:00,513 - INFO - Initial checks done. Running the testcase now
2024-11-08 11:29:00,513 - INFO -
2024-11-08 11:29:01,116 - DEBUG - Response for create_network : {'network': {'id': 'bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd', 'name': 'ctest-vn-53325471', 'tenant_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'project_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39223560', 'ctest-vn-53325471'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 11:29:01,308 - DEBUG - Response for create_subnet : {'subnet': {'id': '39896468-ace6-4498-a591-363a2dfc3c90', 'name': '', 'tenant_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'network_id': 'bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd', 'ip_version': 4, 'cidr': '93.188.66.64/26', 'allocation_pools': [{'start': '93.188.66.66', 'end': '93.188.66.126'}], 'gateway_ip': '93.188.66.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.188.66.66', 'tags': [], 'project_id': 'c7d52bd4d3ff46bfa9b32daa458454e5'}}
2024-11-08 11:29:01,331 - INFO - Created VN ctest-vn-53325471
2024-11-08 11:29:01,389 - DEBUG - VN ctest-vn-53325471 UUID is bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd
2024-11-08 11:29:01,725 - DEBUG - Response for create_network : {'network': {'id': 'f215f088-a645-4b4f-b532-0e0f85823094', 'name': 'ctest-vn-65339139', 'tenant_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'project_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39223560', 'ctest-vn-65339139'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 11:29:01,889 - DEBUG - Response for create_subnet : {'subnet': {'id': '900bd640-4a68-428b-9660-8e79a29ccd23', 'name': '', 'tenant_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'network_id': 'f215f088-a645-4b4f-b532-0e0f85823094', 'ip_version': 4, 'cidr': '218.188.125.0/26', 'allocation_pools': [{'start': '218.188.125.2', 'end': '218.188.125.62'}], 'gateway_ip': '218.188.125.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.188.125.2', 'tags': [], 'project_id': 'c7d52bd4d3ff46bfa9b32daa458454e5'}}
2024-11-08 11:29:01,911 - INFO - Created VN ctest-vn-65339139
2024-11-08 11:29:01,970 - DEBUG - VN ctest-vn-65339139 UUID is f215f088-a645-4b4f-b532-0e0f85823094
2024-11-08 11:29:02,093 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-53325471, 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-39223560:ctest-vn-65339139, 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]
2024-11-08 11:29:02,414 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd', 'name': 'ctest-vn-53325471', 'tenant_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'project_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['39896468-ace6-4498-a591-363a2dfc3c90'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39223560', 'ctest-vn-53325471'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39223560', 'ctest-policy-allow-all-97211376']], 'subnet_ipam': [{'subnet_cidr': '93.188.66.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 11:29:02,657 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f215f088-a645-4b4f-b532-0e0f85823094', 'name': 'ctest-vn-65339139', 'tenant_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'project_id': 'c7d52bd4d3ff46bfa9b32daa458454e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['900bd640-4a68-428b-9660-8e79a29ccd23'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39223560', 'ctest-vn-65339139'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39223560', 'ctest-policy-allow-all-97211376']], 'subnet_ipam': [{'subnet_cidr': '218.188.125.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 11:29:02,853 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-11-08 11:29:03,155 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-11-08 11:29:03,195 - DEBUG - Requesting: http://10.0.0.35:8082/domain/a2c7eeba-e6df-455c-b8be-0692f00934ec
2024-11-08 11:29:03,214 - DEBUG - Requesting: http://10.0.0.35:8082/project/c7d52bd4-d3ff-46bf-a9b3-2daa458454e5
2024-11-08 11:29:03,304 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd
2024-11-08 11:29:03,323 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd
2024-11-08 11:29:03,338 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/861f2991-b856-4cb4-bc40-5dc3d5cb6669
2024-11-08 11:29:03,348 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/861f2991-b856-4cb4-bc40-5dc3d5cb6669
2024-11-08 11:29:03,358 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/28d57c36-9fb5-4d4b-bc69-d15bced748cb
2024-11-08 11:29:03,368 - DEBUG - Route Targets: ['target:64512:8000004']
2024-11-08 11:29:03,368 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd
2024-11-08 11:29:03,383 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/861f2991-b856-4cb4-bc40-5dc3d5cb6669
2024-11-08 11:29:03,407 - INFO - Verified VN network id 8 for VN bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd
2024-11-08 11:29:03,407 - INFO - Verifications in API Server for VN ctest-vn-53325471 passed
2024-11-08 11:29:03,407 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd
2024-11-08 11:29:03,422 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/861f2991-b856-4cb4-bc40-5dc3d5cb6669
2024-11-08 11:29:03,433 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/861f2991-b856-4cb4-bc40-5dc3d5cb6669
2024-11-08 11:29:03,442 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/28d57c36-9fb5-4d4b-bc69-d15bced748cb
2024-11-08 11:29:03,457 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-53325471', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39223560', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13578252460251434156', 'uuid-lslong': '12522567474863735549'}, 'enable': 'true', 'created': '2024-11-08T11:29:01', 'last-modified': '2024-11-08T11:29:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.074350'}
2024-11-08 11:29:03,464 - DEBUG - Route Targets: ['target:64512:8000004']
2024-11-08 11:29:03,464 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53325471 passed
2024-11-08 11:29:03,464 - DEBUG - ====Verifying policy data for ctest-vn-53325471 in API_Server ======
2024-11-08 11:29:03,464 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-11-08 11:29:03,471 - DEBUG - Requesting: http://10.0.0.35:8082/domain/a2c7eeba-e6df-455c-b8be-0692f00934ec
2024-11-08 11:29:03,485 - DEBUG - Requesting: http://10.0.0.35:8082/project/c7d52bd4-d3ff-46bf-a9b3-2daa458454e5
2024-11-08 11:29:03,568 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/bc6fa4ac-03dc-4cac-adc9-18c55f1d02fd
2024-11-08 11:29:03,582 - DEBUG - ==>Verifying data for policy with id: 52991507-06a6-4d6c-83c9-a7d018ab9f39, fqn: ['default-domain', 'ctest-TestBasicPolicy-39223560', 'ctest-policy-allow-all-97211376']
2024-11-08 11:29:03,582 - INFO - VN ctest-vn-53325471 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 11:29:03,582 - DEBUG - Verifying the vn in opserver
2024-11-08 11:29:03,582 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-53325471 virtual network link through opserver 10.0.0.35
2024-11-08 11:29:03,582 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-11-08 11:29:03,889 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-11-08 11:29:03,973 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-53325471', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-53325471?flat'}
2024-11-08 11:29:03,973 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-53325471 is found in opserver
2024-11-08 11:29:03,987 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 11:29:03,991 - DEBUG - VRF ids for VN ctest-vn-53325471: {}
2024-11-08 11:29:03,992 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-11-08 11:29:03,998 - DEBUG - Requesting: http://10.0.0.35:8082/domain/a2c7eeba-e6df-455c-b8be-0692f00934ec
2024-11-08 11:29:04,013 - DEBUG - Requesting: http://10.0.0.35:8082/project/c7d52bd4-d3ff-46bf-a9b3-2daa458454e5
2024-11-08 11:29:04,118 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/f215f088-a645-4b4f-b532-0e0f85823094
2024-11-08 11:29:04,135 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/f215f088-a645-4b4f-b532-0e0f85823094
2024-11-08 11:29:04,156 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/f0e879fe-9518-42ec-a6a6-147e511abeb5
2024-11-08 11:29:04,168 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/f0e879fe-9518-42ec-a6a6-147e511abeb5
2024-11-08 11:29:04,180 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/5476addb-bf94-4e9b-af13-c4fd1e66085e
2024-11-08 11:29:04,188 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 11:29:04,188 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/f215f088-a645-4b4f-b532-0e0f85823094
2024-11-08 11:29:04,202 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/f0e879fe-9518-42ec-a6a6-147e511abeb5
2024-11-08 11:29:04,221 - INFO - Verified VN network id 9 for VN f215f088-a645-4b4f-b532-0e0f85823094
2024-11-08 11:29:04,221 - INFO - Verifications in API Server for VN ctest-vn-65339139 passed
2024-11-08 11:29:04,222 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/f215f088-a645-4b4f-b532-0e0f85823094
2024-11-08 11:29:04,235 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/f0e879fe-9518-42ec-a6a6-147e511abeb5
2024-11-08 11:29:04,245 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/f0e879fe-9518-42ec-a6a6-147e511abeb5
2024-11-08 11:29:04,254 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/5476addb-bf94-4e9b-af13-c4fd1e66085e
2024-11-08 11:29:04,269 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-65339139', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39223560', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17444113201385261903', 'uuid-lslong': '13056513729527689364'}, 'enable': 'true', 'created': '2024-11-08T11:29:01', 'last-modified': '2024-11-08T11:29:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.630518'}
2024-11-08 11:29:04,277 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 11:29:04,277 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65339139 passed
2024-11-08 11:29:04,278 - DEBUG - ====Verifying policy data for ctest-vn-65339139 in API_Server ======
2024-11-08 11:29:04,278 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-11-08 11:29:04,286 - DEBUG - Requesting: http://10.0.0.35:8082/domain/a2c7eeba-e6df-455c-b8be-0692f00934ec
2024-11-08 11:29:04,301 - DEBUG - Requesting: http://10.0.0.35:8082/project/c7d52bd4-d3ff-46bf-a9b3-2daa458454e5
2024-11-08 11:29:04,388 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/f215f088-a645-4b4f-b532-0e0f85823094
2024-11-08 11:29:04,407 - DEBUG - ==>Verifying data for policy with id: 52991507-06a6-4d6c-83c9-a7d018ab9f39, fqn: ['default-domain', 'ctest-TestBasicPolicy-39223560', 'ctest-policy-allow-all-97211376']
2024-11-08 11:29:04,407 - INFO - VN ctest-vn-65339139 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 11:29:04,407 - DEBUG - Verifying the vn in opserver
2024-11-08 11:29:04,407 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-65339139 virtual network link through opserver 10.0.0.35
2024-11-08 11:29:04,407 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-11-08 11:29:04,421 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-65339139', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-65339139?flat'}
2024-11-08 11:29:04,421 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39223560:ctest-vn-65339139 is found in opserver
2024-11-08 11:29:04,436 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 11:29:04,443 - DEBUG - VRF ids for VN ctest-vn-65339139: {}
2024-11-08 11:29:04,499 - DEBUG - Services list from nova: [