2025-04-16 17:19:21,360 - INFO - Domain Default found not creating
2025-04-16 17:19:21,552 - INFO - Project ctest-TestBasicPolicy-64338380 not found, creating it
2025-04-16 17:19:22,055 - INFO - Created Project:ctest-TestBasicPolicy-64338380, ID : 8befb256-f3c1-4967-89de-d578f9fb45cb
2025-04-16 17:19:23,680 - INFO - ================================================================================
2025-04-16 17:19:23,680 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-16 17:19:23,680 - 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-16 17:19:23,955 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-04-16 17:19:23,955 - INFO - Initial checks done. Running the testcase now
2025-04-16 17:19:23,955 - INFO -
2025-04-16 17:19:24,575 - DEBUG - Response for create_network : {'network': {'id': 'b964e2ce-c694-423f-9ab8-09df544964d1', 'name': 'ctest-vn-59757299', 'tenant_id': '8befb256f3c1496789ded578f9fb45cb', 'project_id': '8befb256f3c1496789ded578f9fb45cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64338380', 'ctest-vn-59757299'], 'port_security_enabled': True, 'description': ''}}
2025-04-16 17:19:24,797 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a1e78be7-3754-4587-ba3f-04d79f676fd6', 'name': '', 'tenant_id': '8befb256f3c1496789ded578f9fb45cb', 'network_id': 'b964e2ce-c694-423f-9ab8-09df544964d1', 'ip_version': 4, 'cidr': '97.223.26.128/26', 'allocation_pools': [{'start': '97.223.26.130', 'end': '97.223.26.190'}], 'gateway_ip': '97.223.26.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.223.26.130', 'tags': [], 'project_id': '8befb256f3c1496789ded578f9fb45cb'}}
2025-04-16 17:19:24,819 - INFO - Created VN ctest-vn-59757299
2025-04-16 17:19:24,875 - DEBUG - VN ctest-vn-59757299 UUID is b964e2ce-c694-423f-9ab8-09df544964d1
2025-04-16 17:19:25,254 - DEBUG - Response for create_network : {'network': {'id': 'fc78721c-90e4-468c-809a-4b1fdd477a4a', 'name': 'ctest-vn-34338012', 'tenant_id': '8befb256f3c1496789ded578f9fb45cb', 'project_id': '8befb256f3c1496789ded578f9fb45cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64338380', 'ctest-vn-34338012'], 'port_security_enabled': True, 'description': ''}}
2025-04-16 17:19:25,775 - DEBUG - Response for create_subnet : {'subnet': {'id': '23521c27-80e3-4fc9-8e39-62a2c2d39406', 'name': '', 'tenant_id': '8befb256f3c1496789ded578f9fb45cb', 'network_id': 'fc78721c-90e4-468c-809a-4b1fdd477a4a', 'ip_version': 4, 'cidr': '19.44.163.128/26', 'allocation_pools': [{'start': '19.44.163.130', 'end': '19.44.163.190'}], 'gateway_ip': '19.44.163.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.44.163.130', 'tags': [], 'project_id': '8befb256f3c1496789ded578f9fb45cb'}}
2025-04-16 17:19:25,812 - INFO - Created VN ctest-vn-34338012
2025-04-16 17:19:25,871 - DEBUG - VN ctest-vn-34338012 UUID is fc78721c-90e4-468c-809a-4b1fdd477a4a
2025-04-16 17:19:26,084 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-59757299, 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-64338380:ctest-vn-34338012, 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-16 17:19:26,496 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b964e2ce-c694-423f-9ab8-09df544964d1', 'name': 'ctest-vn-59757299', 'tenant_id': '8befb256f3c1496789ded578f9fb45cb', 'project_id': '8befb256f3c1496789ded578f9fb45cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a1e78be7-3754-4587-ba3f-04d79f676fd6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64338380', 'ctest-vn-59757299'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64338380', 'ctest-policy-allow-all-73141748']], 'subnet_ipam': [{'subnet_cidr': '97.223.26.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-16 17:19:26,785 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc78721c-90e4-468c-809a-4b1fdd477a4a', 'name': 'ctest-vn-34338012', 'tenant_id': '8befb256f3c1496789ded578f9fb45cb', 'project_id': '8befb256f3c1496789ded578f9fb45cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23521c27-80e3-4fc9-8e39-62a2c2d39406'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64338380', 'ctest-vn-34338012'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64338380', 'ctest-policy-allow-all-73141748']], 'subnet_ipam': [{'subnet_cidr': '19.44.163.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-16 17:19:26,959 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-16 17:19:27,285 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-16 17:19:27,335 - DEBUG - Requesting: http://10.0.0.254:8082/domain/348e3673-7328-4d07-9c0d-59eb02b00f54
2025-04-16 17:19:27,357 - DEBUG - Requesting: http://10.0.0.254:8082/project/8befb256-f3c1-4967-89de-d578f9fb45cb
2025-04-16 17:19:27,445 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b964e2ce-c694-423f-9ab8-09df544964d1
2025-04-16 17:19:27,463 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b964e2ce-c694-423f-9ab8-09df544964d1
2025-04-16 17:19:27,478 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8ef087d1-608f-45f2-a2be-7f9759c14d08
2025-04-16 17:19:27,489 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8ef087d1-608f-45f2-a2be-7f9759c14d08
2025-04-16 17:19:27,500 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1d523683-6cd1-4abf-9987-f8a9d46e6b17
2025-04-16 17:19:27,509 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-16 17:19:27,510 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b964e2ce-c694-423f-9ab8-09df544964d1
2025-04-16 17:19:27,525 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8ef087d1-608f-45f2-a2be-7f9759c14d08
2025-04-16 17:19:27,551 - INFO - Verified VN network id 9 for VN b964e2ce-c694-423f-9ab8-09df544964d1
2025-04-16 17:19:27,551 - INFO - Verifications in API Server for VN ctest-vn-59757299 passed
2025-04-16 17:19:27,551 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b964e2ce-c694-423f-9ab8-09df544964d1
2025-04-16 17:19:27,564 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8ef087d1-608f-45f2-a2be-7f9759c14d08
2025-04-16 17:19:27,574 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8ef087d1-608f-45f2-a2be-7f9759c14d08
2025-04-16 17:19:27,583 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/1d523683-6cd1-4abf-9987-f8a9d46e6b17
2025-04-16 17:19:27,602 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-59757299', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64338380', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13359051772410479167', 'uuid-lslong': '11148671732352115921'}, 'enable': 'true', 'created': '2025-04-16T17:19:24', 'last-modified': '2025-04-16T17:19:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.140299'}
2025-04-16 17:19:27,613 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-16 17:19:27,613 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59757299 passed
2025-04-16 17:19:27,613 - DEBUG - ====Verifying policy data for ctest-vn-59757299 in API_Server ======
2025-04-16 17:19:27,613 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-16 17:19:27,622 - DEBUG - Requesting: http://10.0.0.254:8082/domain/348e3673-7328-4d07-9c0d-59eb02b00f54
2025-04-16 17:19:27,641 - DEBUG - Requesting: http://10.0.0.254:8082/project/8befb256-f3c1-4967-89de-d578f9fb45cb
2025-04-16 17:19:27,720 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b964e2ce-c694-423f-9ab8-09df544964d1
2025-04-16 17:19:27,732 - DEBUG - ==>Verifying data for policy with id: 4fd82bfa-709d-49b3-8fe7-30c991fc7700, fqn: ['default-domain', 'ctest-TestBasicPolicy-64338380', 'ctest-policy-allow-all-73141748']
2025-04-16 17:19:27,732 - INFO - VN ctest-vn-59757299 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-16 17:19:27,732 - DEBUG - Verifying the vn in opserver
2025-04-16 17:19:27,732 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-59757299 virtual network link through opserver 10.0.0.254
2025-04-16 17:19:27,733 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-16 17:19:28,035 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-16 17:19:28,116 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-59757299', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-59757299?flat'}
2025-04-16 17:19:28,116 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-59757299 is found in opserver
2025-04-16 17:19:28,130 - DEBUG - Do not have enough data to verify VN in agent
2025-04-16 17:19:28,137 - DEBUG - VRF ids for VN ctest-vn-59757299: {}
2025-04-16 17:19:28,137 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-16 17:19:28,145 - DEBUG - Requesting: http://10.0.0.254:8082/domain/348e3673-7328-4d07-9c0d-59eb02b00f54
2025-04-16 17:19:28,160 - DEBUG - Requesting: http://10.0.0.254:8082/project/8befb256-f3c1-4967-89de-d578f9fb45cb
2025-04-16 17:19:28,251 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fc78721c-90e4-468c-809a-4b1fdd477a4a
2025-04-16 17:19:28,266 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fc78721c-90e4-468c-809a-4b1fdd477a4a
2025-04-16 17:19:28,278 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99a1439d-f1e5-4d16-be12-36c623f1f205
2025-04-16 17:19:28,288 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99a1439d-f1e5-4d16-be12-36c623f1f205
2025-04-16 17:19:28,297 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ac4d0e28-ef8c-4c1e-967d-14cec9756859
2025-04-16 17:19:28,305 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-16 17:19:28,305 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fc78721c-90e4-468c-809a-4b1fdd477a4a
2025-04-16 17:19:28,318 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99a1439d-f1e5-4d16-be12-36c623f1f205
2025-04-16 17:19:28,340 - INFO - Verified VN network id 10 for VN fc78721c-90e4-468c-809a-4b1fdd477a4a
2025-04-16 17:19:28,340 - INFO - Verifications in API Server for VN ctest-vn-34338012 passed
2025-04-16 17:19:28,341 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fc78721c-90e4-468c-809a-4b1fdd477a4a
2025-04-16 17:19:28,357 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99a1439d-f1e5-4d16-be12-36c623f1f205
2025-04-16 17:19:28,378 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/99a1439d-f1e5-4d16-be12-36c623f1f205
2025-04-16 17:19:28,390 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ac4d0e28-ef8c-4c1e-967d-14cec9756859
2025-04-16 17:19:28,408 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-34338012', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64338380', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18192416161778648716', 'uuid-lslong': '9266801783496735306'}, 'enable': 'true', 'created': '2025-04-16T17:19:25', 'last-modified': '2025-04-16T17:19:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.658109'}
2025-04-16 17:19:28,416 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-16 17:19:28,416 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34338012 passed
2025-04-16 17:19:28,416 - DEBUG - ====Verifying policy data for ctest-vn-34338012 in API_Server ======
2025-04-16 17:19:28,416 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-16 17:19:28,424 - DEBUG - Requesting: http://10.0.0.254:8082/domain/348e3673-7328-4d07-9c0d-59eb02b00f54
2025-04-16 17:19:28,440 - DEBUG - Requesting: http://10.0.0.254:8082/project/8befb256-f3c1-4967-89de-d578f9fb45cb
2025-04-16 17:19:28,532 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/fc78721c-90e4-468c-809a-4b1fdd477a4a
2025-04-16 17:19:28,546 - DEBUG - ==>Verifying data for policy with id: 4fd82bfa-709d-49b3-8fe7-30c991fc7700, fqn: ['default-domain', 'ctest-TestBasicPolicy-64338380', 'ctest-policy-allow-all-73141748']
2025-04-16 17:19:28,546 - INFO - VN ctest-vn-34338012 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-16 17:19:28,546 - DEBUG - Verifying the vn in opserver
2025-04-16 17:19:28,546 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-34338012 virtual network link through opserver 10.0.0.254
2025-04-16 17:19:28,546 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-16 17:19:28,561 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-34338012', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-34338012?flat'}
2025-04-16 17:19:28,562 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64338380:ctest-vn-34338012 is found in opserver
2025-04-16 17:19:28,576 - DEBUG - Do not have enough data to verify VN in agent
2025-04-16 17:19:28,582 - DEBUG - VRF ids for VN ctest-vn-34338012: {}
2025-04-16 17:19:28,655 - DEBUG - Services list from nova: [