2025-05-27 11:03:50,396 - INFO - Domain Default found not creating
2025-05-27 11:03:50,565 - INFO - Project ctest-TestBasicPolicy-21649712 not found, creating it
2025-05-27 11:03:51,033 - INFO - Created Project:ctest-TestBasicPolicy-21649712, ID : 3906e31b-5fab-4b51-ab7f-b0d12d0c296d
2025-05-27 11:03:52,462 - INFO - ================================================================================
2025-05-27 11:03:52,462 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-27 11:03:52,462 - 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-05-27 11:03:52,723 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-05-27 11:03:52,723 - INFO - Initial checks done. Running the testcase now
2025-05-27 11:03:52,723 - INFO -
2025-05-27 11:03:53,262 - DEBUG - Response for create_network : {'network': {'id': 'ee1431e4-6e54-40a5-97aa-8aecbca8c963', 'name': 'ctest-vn-40712021', 'tenant_id': '3906e31b5fab4b51ab7fb0d12d0c296d', 'project_id': '3906e31b5fab4b51ab7fb0d12d0c296d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21649712', 'ctest-vn-40712021'], 'port_security_enabled': True, 'description': ''}}
2025-05-27 11:03:53,453 - DEBUG - Response for create_subnet : {'subnet': {'id': '03b46b4c-9ccc-43aa-a98a-c801ae0b0b42', 'name': '', 'tenant_id': '3906e31b5fab4b51ab7fb0d12d0c296d', 'network_id': 'ee1431e4-6e54-40a5-97aa-8aecbca8c963', 'ip_version': 4, 'cidr': '94.219.107.64/26', 'allocation_pools': [{'start': '94.219.107.66', 'end': '94.219.107.126'}], 'gateway_ip': '94.219.107.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.219.107.66', 'tags': [], 'project_id': '3906e31b5fab4b51ab7fb0d12d0c296d'}}
2025-05-27 11:03:53,475 - INFO - Created VN ctest-vn-40712021
2025-05-27 11:03:53,528 - DEBUG - VN ctest-vn-40712021 UUID is ee1431e4-6e54-40a5-97aa-8aecbca8c963
2025-05-27 11:03:53,953 - DEBUG - Response for create_network : {'network': {'id': 'cac14a95-9762-46cc-ac0d-5231ddf40a5c', 'name': 'ctest-vn-45673771', 'tenant_id': '3906e31b5fab4b51ab7fb0d12d0c296d', 'project_id': '3906e31b5fab4b51ab7fb0d12d0c296d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21649712', 'ctest-vn-45673771'], 'port_security_enabled': True, 'description': ''}}
2025-05-27 11:03:54,092 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f234e4f5-552b-4bc6-b671-027d3addc244', 'name': '', 'tenant_id': '3906e31b5fab4b51ab7fb0d12d0c296d', 'network_id': 'cac14a95-9762-46cc-ac0d-5231ddf40a5c', 'ip_version': 4, 'cidr': '189.12.162.0/26', 'allocation_pools': [{'start': '189.12.162.2', 'end': '189.12.162.62'}], 'gateway_ip': '189.12.162.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.12.162.2', 'tags': [], 'project_id': '3906e31b5fab4b51ab7fb0d12d0c296d'}}
2025-05-27 11:03:54,110 - INFO - Created VN ctest-vn-45673771
2025-05-27 11:03:54,164 - DEBUG - VN ctest-vn-45673771 UUID is cac14a95-9762-46cc-ac0d-5231ddf40a5c
2025-05-27 11:03:54,316 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21649712:ctest-vn-40712021, 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-21649712:ctest-vn-45673771, 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-05-27 11:03:54,620 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ee1431e4-6e54-40a5-97aa-8aecbca8c963', 'name': 'ctest-vn-40712021', 'tenant_id': '3906e31b5fab4b51ab7fb0d12d0c296d', 'project_id': '3906e31b5fab4b51ab7fb0d12d0c296d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['03b46b4c-9ccc-43aa-a98a-c801ae0b0b42'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21649712', 'ctest-vn-40712021'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21649712', 'ctest-policy-allow-all-46717981']], 'subnet_ipam': [{'subnet_cidr': '94.219.107.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-27 11:03:54,893 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cac14a95-9762-46cc-ac0d-5231ddf40a5c', 'name': 'ctest-vn-45673771', 'tenant_id': '3906e31b5fab4b51ab7fb0d12d0c296d', 'project_id': '3906e31b5fab4b51ab7fb0d12d0c296d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f234e4f5-552b-4bc6-b671-027d3addc244'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21649712', 'ctest-vn-45673771'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21649712', 'ctest-policy-allow-all-46717981']], 'subnet_ipam': [{'subnet_cidr': '189.12.162.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-27 11:03:55,054 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-27 11:03:55,354 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-27 11:03:55,383 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a06ce1a1-57f7-4e8c-974d-96b74197f9b7
2025-05-27 11:03:55,398 - DEBUG - Requesting: http://10.0.0.38:8082/project/3906e31b-5fab-4b51-ab7f-b0d12d0c296d
2025-05-27 11:03:55,469 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ee1431e4-6e54-40a5-97aa-8aecbca8c963
2025-05-27 11:03:55,480 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ee1431e4-6e54-40a5-97aa-8aecbca8c963
2025-05-27 11:03:55,489 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ddbff9d4-65a1-4898-9fb5-6253039de1ef
2025-05-27 11:03:55,496 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ddbff9d4-65a1-4898-9fb5-6253039de1ef
2025-05-27 11:03:55,503 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/aa5eb0e7-28ff-44c0-a013-f6feb624c036
2025-05-27 11:03:55,510 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-27 11:03:55,510 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ee1431e4-6e54-40a5-97aa-8aecbca8c963
2025-05-27 11:03:55,518 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ddbff9d4-65a1-4898-9fb5-6253039de1ef
2025-05-27 11:03:55,533 - INFO - Verified VN network id 8 for VN ee1431e4-6e54-40a5-97aa-8aecbca8c963
2025-05-27 11:03:55,534 - INFO - Verifications in API Server for VN ctest-vn-40712021 passed
2025-05-27 11:03:55,534 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ee1431e4-6e54-40a5-97aa-8aecbca8c963
2025-05-27 11:03:55,544 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ddbff9d4-65a1-4898-9fb5-6253039de1ef
2025-05-27 11:03:55,554 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ddbff9d4-65a1-4898-9fb5-6253039de1ef
2025-05-27 11:03:55,560 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/aa5eb0e7-28ff-44c0-a013-f6feb624c036
2025-05-27 11:03:55,573 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21649712:ctest-vn-40712021', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21649712', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17155391737734381733', 'uuid-lslong': '10928700195150023011'}, 'enable': 'true', 'created': '2025-05-27T11:03:53', 'last-modified': '2025-05-27T11:03:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980146'}
2025-05-27 11:03:55,580 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-27 11:03:55,580 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40712021 passed
2025-05-27 11:03:55,580 - DEBUG - ====Verifying policy data for ctest-vn-40712021 in API_Server ======
2025-05-27 11:03:55,580 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-27 11:03:55,587 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a06ce1a1-57f7-4e8c-974d-96b74197f9b7
2025-05-27 11:03:55,600 - DEBUG - Requesting: http://10.0.0.38:8082/project/3906e31b-5fab-4b51-ab7f-b0d12d0c296d
2025-05-27 11:03:55,677 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ee1431e4-6e54-40a5-97aa-8aecbca8c963
2025-05-27 11:03:55,687 - DEBUG - ==>Verifying data for policy with id: 4f6bcf90-5ab3-4044-b895-f8ee97724924, fqn: ['default-domain', 'ctest-TestBasicPolicy-21649712', 'ctest-policy-allow-all-46717981']
2025-05-27 11:03:55,687 - INFO - VN ctest-vn-40712021 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-27 11:03:55,687 - DEBUG - Verifying the vn in opserver
2025-05-27 11:03:55,687 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21649712:ctest-vn-40712021 virtual network link through opserver 10.0.0.38
2025-05-27 11:03:55,687 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-27 11:03:55,979 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-27 11:03:56,037 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21649712:ctest-vn-40712021', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21649712:ctest-vn-40712021?flat'}
2025-05-27 11:03:56,037 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21649712:ctest-vn-40712021 is found in opserver
2025-05-27 11:03:56,048 - DEBUG - Do not have enough data to verify VN in agent
2025-05-27 11:03:56,054 - DEBUG - VRF ids for VN ctest-vn-40712021: {}
2025-05-27 11:03:56,054 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-27 11:03:56,061 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a06ce1a1-57f7-4e8c-974d-96b74197f9b7
2025-05-27 11:03:56,073 - DEBUG - Requesting: http://10.0.0.38:8082/project/3906e31b-5fab-4b51-ab7f-b0d12d0c296d
2025-05-27 11:03:56,147 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cac14a95-9762-46cc-ac0d-5231ddf40a5c
2025-05-27 11:03:56,159 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cac14a95-9762-46cc-ac0d-5231ddf40a5c
2025-05-27 11:03:56,169 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3059a3d6-5d23-4062-819d-9d24cbb910b3
2025-05-27 11:03:56,178 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3059a3d6-5d23-4062-819d-9d24cbb910b3
2025-05-27 11:03:56,185 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b3663c11-2de1-4c28-a41c-c2f6091b6d14
2025-05-27 11:03:56,192 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-27 11:03:56,192 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cac14a95-9762-46cc-ac0d-5231ddf40a5c
2025-05-27 11:03:56,201 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3059a3d6-5d23-4062-819d-9d24cbb910b3
2025-05-27 11:03:56,214 - INFO - Verified VN network id 9 for VN cac14a95-9762-46cc-ac0d-5231ddf40a5c
2025-05-27 11:03:56,215 - INFO - Verifications in API Server for VN ctest-vn-45673771 passed
2025-05-27 11:03:56,215 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cac14a95-9762-46cc-ac0d-5231ddf40a5c
2025-05-27 11:03:56,224 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3059a3d6-5d23-4062-819d-9d24cbb910b3
2025-05-27 11:03:56,231 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3059a3d6-5d23-4062-819d-9d24cbb910b3
2025-05-27 11:03:56,240 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b3663c11-2de1-4c28-a41c-c2f6091b6d14
2025-05-27 11:03:56,253 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21649712:ctest-vn-45673771', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21649712', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14610040672516982476', 'uuid-lslong': '12397655723351476828'}, 'enable': 'true', 'created': '2025-05-27T11:03:53', 'last-modified': '2025-05-27T11:03:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.424225'}
2025-05-27 11:03:56,259 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-27 11:03:56,259 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45673771 passed
2025-05-27 11:03:56,260 - DEBUG - ====Verifying policy data for ctest-vn-45673771 in API_Server ======
2025-05-27 11:03:56,260 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-27 11:03:56,266 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a06ce1a1-57f7-4e8c-974d-96b74197f9b7
2025-05-27 11:03:56,277 - DEBUG - Requesting: http://10.0.0.38:8082/project/3906e31b-5fab-4b51-ab7f-b0d12d0c296d
2025-05-27 11:03:56,347 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cac14a95-9762-46cc-ac0d-5231ddf40a5c
2025-05-27 11:03:56,358 - DEBUG - ==>Verifying data for policy with id: 4f6bcf90-5ab3-4044-b895-f8ee97724924, fqn: ['default-domain', 'ctest-TestBasicPolicy-21649712', 'ctest-policy-allow-all-46717981']
2025-05-27 11:03:56,358 - INFO - VN ctest-vn-45673771 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-27 11:03:56,358 - DEBUG - Verifying the vn in opserver
2025-05-27 11:03:56,358 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21649712:ctest-vn-45673771 virtual network link through opserver 10.0.0.38
2025-05-27 11:03:56,358 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-27 11:03:56,368 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21649712:ctest-vn-45673771', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21649712:ctest-vn-45673771?flat'}
2025-05-27 11:03:56,368 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21649712:ctest-vn-45673771 is found in opserver
2025-05-27 11:03:56,379 - DEBUG - Do not have enough data to verify VN in agent
2025-05-27 11:03:56,385 - DEBUG - VRF ids for VN ctest-vn-45673771: {}
2025-05-27 11:03:56,440 - DEBUG - Services list from nova: [