2025-02-06 12:57:24,193 - INFO - Domain Default found not creating
2025-02-06 12:57:24,334 - INFO - Project ctest-TestBasicPolicy-20959779 not found, creating it
2025-02-06 12:57:24,796 - INFO - Created Project:ctest-TestBasicPolicy-20959779, ID : cc22101c-1d4a-47d5-918b-d21bf8fed6b9
2025-02-06 12:57:26,355 - INFO - ================================================================================
2025-02-06 12:57:26,355 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-06 12:57:26,355 - 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-06 12:57:26,615 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.17': '0'}} with
2025-02-06 12:57:26,615 - INFO - Initial checks done. Running the testcase now
2025-02-06 12:57:26,615 - INFO -
2025-02-06 12:57:27,203 - DEBUG - Response for create_network : {'network': {'id': '0408b5a9-cca8-4cc2-9915-28540c61d5d4', 'name': 'ctest-vn-16219543', 'tenant_id': 'cc22101c1d4a47d5918bd21bf8fed6b9', 'project_id': 'cc22101c1d4a47d5918bd21bf8fed6b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20959779', 'ctest-vn-16219543'], 'port_security_enabled': True, 'description': ''}}
2025-02-06 12:57:27,426 - DEBUG - Response for create_subnet : {'subnet': {'id': '77caefca-cd20-4a4d-a494-eba32ff3d840', 'name': '', 'tenant_id': 'cc22101c1d4a47d5918bd21bf8fed6b9', 'network_id': '0408b5a9-cca8-4cc2-9915-28540c61d5d4', 'ip_version': 4, 'cidr': '79.248.44.192/26', 'allocation_pools': [{'start': '79.248.44.194', 'end': '79.248.44.254'}], 'gateway_ip': '79.248.44.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.248.44.194', 'tags': [], 'project_id': 'cc22101c1d4a47d5918bd21bf8fed6b9'}}
2025-02-06 12:57:27,444 - INFO - Created VN ctest-vn-16219543
2025-02-06 12:57:27,498 - DEBUG - VN ctest-vn-16219543 UUID is 0408b5a9-cca8-4cc2-9915-28540c61d5d4
2025-02-06 12:57:27,848 - DEBUG - Response for create_network : {'network': {'id': 'bcae9e31-ddcb-47ae-bd34-737b2ee030c0', 'name': 'ctest-vn-29541951', 'tenant_id': 'cc22101c1d4a47d5918bd21bf8fed6b9', 'project_id': 'cc22101c1d4a47d5918bd21bf8fed6b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20959779', 'ctest-vn-29541951'], 'port_security_enabled': True, 'description': ''}}
2025-02-06 12:57:28,074 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b939ffaa-9870-45d3-8fde-72bfd57af1dc', 'name': '', 'tenant_id': 'cc22101c1d4a47d5918bd21bf8fed6b9', 'network_id': 'bcae9e31-ddcb-47ae-bd34-737b2ee030c0', 'ip_version': 4, 'cidr': '205.86.46.128/26', 'allocation_pools': [{'start': '205.86.46.130', 'end': '205.86.46.190'}], 'gateway_ip': '205.86.46.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.86.46.130', 'tags': [], 'project_id': 'cc22101c1d4a47d5918bd21bf8fed6b9'}}
2025-02-06 12:57:28,092 - INFO - Created VN ctest-vn-29541951
2025-02-06 12:57:28,146 - DEBUG - VN ctest-vn-29541951 UUID is bcae9e31-ddcb-47ae-bd34-737b2ee030c0
2025-02-06 12:57:28,257 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20959779:ctest-vn-16219543, 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-20959779:ctest-vn-29541951, 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-06 12:57:28,563 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0408b5a9-cca8-4cc2-9915-28540c61d5d4', 'name': 'ctest-vn-16219543', 'tenant_id': 'cc22101c1d4a47d5918bd21bf8fed6b9', 'project_id': 'cc22101c1d4a47d5918bd21bf8fed6b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['77caefca-cd20-4a4d-a494-eba32ff3d840'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20959779', 'ctest-vn-16219543'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20959779', 'ctest-policy-allow-all-94766934']], 'subnet_ipam': [{'subnet_cidr': '79.248.44.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-06 12:57:28,856 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bcae9e31-ddcb-47ae-bd34-737b2ee030c0', 'name': 'ctest-vn-29541951', 'tenant_id': 'cc22101c1d4a47d5918bd21bf8fed6b9', 'project_id': 'cc22101c1d4a47d5918bd21bf8fed6b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b939ffaa-9870-45d3-8fde-72bfd57af1dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20959779', 'ctest-vn-29541951'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20959779', 'ctest-policy-allow-all-94766934']], 'subnet_ipam': [{'subnet_cidr': '205.86.46.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-06 12:57:29,018 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-06 12:57:29,357 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-06 12:57:29,384 - DEBUG - Requesting: http://10.0.0.24:8082/domain/f6d1ccab-fbc6-46b5-9c91-98ccf0568927
2025-02-06 12:57:29,398 - DEBUG - Requesting: http://10.0.0.24:8082/project/cc22101c-1d4a-47d5-918b-d21bf8fed6b9
2025-02-06 12:57:29,471 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0408b5a9-cca8-4cc2-9915-28540c61d5d4
2025-02-06 12:57:29,484 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0408b5a9-cca8-4cc2-9915-28540c61d5d4
2025-02-06 12:57:29,495 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/e555378c-3f9b-4c06-8660-bcafe3ce93eb
2025-02-06 12:57:29,503 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/e555378c-3f9b-4c06-8660-bcafe3ce93eb
2025-02-06 12:57:29,510 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/ce66910d-e981-4043-8db9-eb41efec9e38
2025-02-06 12:57:29,517 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-06 12:57:29,517 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0408b5a9-cca8-4cc2-9915-28540c61d5d4
2025-02-06 12:57:29,527 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/e555378c-3f9b-4c06-8660-bcafe3ce93eb
2025-02-06 12:57:29,542 - INFO - Verified VN network id 8 for VN 0408b5a9-cca8-4cc2-9915-28540c61d5d4
2025-02-06 12:57:29,542 - INFO - Verifications in API Server for VN ctest-vn-16219543 passed
2025-02-06 12:57:29,542 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0408b5a9-cca8-4cc2-9915-28540c61d5d4
2025-02-06 12:57:29,553 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/e555378c-3f9b-4c06-8660-bcafe3ce93eb
2025-02-06 12:57:29,560 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/e555378c-3f9b-4c06-8660-bcafe3ce93eb
2025-02-06 12:57:29,568 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/ce66910d-e981-4043-8db9-eb41efec9e38
2025-02-06 12:57:29,580 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20959779:ctest-vn-16219543', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20959779', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '290681916853079234', 'uuid-lslong': '11030767203764000212'}, 'enable': 'true', 'created': '2025-02-06T12:57:27', 'last-modified': '2025-02-06T12:57:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.042207'}
2025-02-06 12:57:29,587 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-06 12:57:29,587 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16219543 passed
2025-02-06 12:57:29,587 - DEBUG - ====Verifying policy data for ctest-vn-16219543 in API_Server ======
2025-02-06 12:57:29,587 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-06 12:57:29,592 - DEBUG - Requesting: http://10.0.0.24:8082/domain/f6d1ccab-fbc6-46b5-9c91-98ccf0568927
2025-02-06 12:57:29,604 - DEBUG - Requesting: http://10.0.0.24:8082/project/cc22101c-1d4a-47d5-918b-d21bf8fed6b9
2025-02-06 12:57:29,681 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0408b5a9-cca8-4cc2-9915-28540c61d5d4
2025-02-06 12:57:29,692 - DEBUG - ==>Verifying data for policy with id: 94fe65d3-bb5a-443b-b96b-143110f73a2b, fqn: ['default-domain', 'ctest-TestBasicPolicy-20959779', 'ctest-policy-allow-all-94766934']
2025-02-06 12:57:29,692 - INFO - VN ctest-vn-16219543 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-06 12:57:29,692 - DEBUG - Verifying the vn in opserver
2025-02-06 12:57:29,692 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20959779:ctest-vn-16219543 virtual network link through opserver 10.0.0.24
2025-02-06 12:57:29,692 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-06 12:57:30,027 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-06 12:57:30,084 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20959779:ctest-vn-16219543', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20959779:ctest-vn-16219543?flat'}
2025-02-06 12:57:30,084 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20959779:ctest-vn-16219543 is found in opserver
2025-02-06 12:57:30,097 - DEBUG - Do not have enough data to verify VN in agent
2025-02-06 12:57:30,103 - DEBUG - VRF ids for VN ctest-vn-16219543: {}
2025-02-06 12:57:30,103 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-06 12:57:30,108 - DEBUG - Requesting: http://10.0.0.24:8082/domain/f6d1ccab-fbc6-46b5-9c91-98ccf0568927
2025-02-06 12:57:30,120 - DEBUG - Requesting: http://10.0.0.24:8082/project/cc22101c-1d4a-47d5-918b-d21bf8fed6b9
2025-02-06 12:57:30,193 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bcae9e31-ddcb-47ae-bd34-737b2ee030c0
2025-02-06 12:57:30,205 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bcae9e31-ddcb-47ae-bd34-737b2ee030c0
2025-02-06 12:57:30,215 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ed02b500-b253-4326-bfd2-3aebd7691c98
2025-02-06 12:57:30,222 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ed02b500-b253-4326-bfd2-3aebd7691c98
2025-02-06 12:57:30,228 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/59f9486e-b36e-4394-bd51-c4e39e40bede
2025-02-06 12:57:30,235 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-06 12:57:30,235 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bcae9e31-ddcb-47ae-bd34-737b2ee030c0
2025-02-06 12:57:30,244 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ed02b500-b253-4326-bfd2-3aebd7691c98
2025-02-06 12:57:30,257 - INFO - Verified VN network id 9 for VN bcae9e31-ddcb-47ae-bd34-737b2ee030c0
2025-02-06 12:57:30,257 - INFO - Verifications in API Server for VN ctest-vn-29541951 passed
2025-02-06 12:57:30,257 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bcae9e31-ddcb-47ae-bd34-737b2ee030c0
2025-02-06 12:57:30,269 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ed02b500-b253-4326-bfd2-3aebd7691c98
2025-02-06 12:57:30,276 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ed02b500-b253-4326-bfd2-3aebd7691c98
2025-02-06 12:57:30,282 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/59f9486e-b36e-4394-bd51-c4e39e40bede
2025-02-06 12:57:30,294 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20959779:ctest-vn-29541951', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20959779', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13595978262089779118', 'uuid-lslong': '13633648944861950144'}, 'enable': 'true', 'created': '2025-02-06T12:57:27', 'last-modified': '2025-02-06T12:57:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.517226'}
2025-02-06 12:57:30,300 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-06 12:57:30,300 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29541951 passed
2025-02-06 12:57:30,300 - DEBUG - ====Verifying policy data for ctest-vn-29541951 in API_Server ======
2025-02-06 12:57:30,301 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-06 12:57:30,306 - DEBUG - Requesting: http://10.0.0.24:8082/domain/f6d1ccab-fbc6-46b5-9c91-98ccf0568927
2025-02-06 12:57:30,317 - DEBUG - Requesting: http://10.0.0.24:8082/project/cc22101c-1d4a-47d5-918b-d21bf8fed6b9
2025-02-06 12:57:30,389 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bcae9e31-ddcb-47ae-bd34-737b2ee030c0
2025-02-06 12:57:30,399 - DEBUG - ==>Verifying data for policy with id: 94fe65d3-bb5a-443b-b96b-143110f73a2b, fqn: ['default-domain', 'ctest-TestBasicPolicy-20959779', 'ctest-policy-allow-all-94766934']
2025-02-06 12:57:30,399 - INFO - VN ctest-vn-29541951 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-06 12:57:30,400 - DEBUG - Verifying the vn in opserver
2025-02-06 12:57:30,400 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20959779:ctest-vn-29541951 virtual network link through opserver 10.0.0.24
2025-02-06 12:57:30,400 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-06 12:57:30,410 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20959779:ctest-vn-29541951', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20959779:ctest-vn-29541951?flat'}
2025-02-06 12:57:30,410 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20959779:ctest-vn-29541951 is found in opserver
2025-02-06 12:57:30,421 - DEBUG - Do not have enough data to verify VN in agent
2025-02-06 12:57:30,426 - DEBUG - VRF ids for VN ctest-vn-29541951: {}
2025-02-06 12:57:30,485 - DEBUG - Services list from nova: [