2024-10-21 02:29:43,389 - INFO - Domain Default found not creating
2024-10-21 02:29:43,594 - INFO - Project ctest-TestBasicPolicy-87147283 not found, creating it
2024-10-21 02:29:44,118 - INFO - Created Project:ctest-TestBasicPolicy-87147283, ID : 92cbaa15-697c-404c-9be2-f65483dbb950
2024-10-21 02:29:45,928 - INFO - ================================================================================
2024-10-21 02:29:45,928 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-21 02:29:45,928 - 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-10-21 02:29:46,217 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.12': '0'}} with
2024-10-21 02:29:46,217 - INFO - Initial checks done. Running the testcase now
2024-10-21 02:29:46,217 - INFO -
2024-10-21 02:29:46,933 - DEBUG - Response for create_network : {'network': {'id': '8b2404f0-0819-4bd0-8f2c-13df494310ee', 'name': 'ctest-vn-56144839', 'tenant_id': '92cbaa15697c404c9be2f65483dbb950', 'project_id': '92cbaa15697c404c9be2f65483dbb950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87147283', 'ctest-vn-56144839'], 'port_security_enabled': True, 'description': ''}}
2024-10-21 02:29:47,148 - DEBUG - Response for create_subnet : {'subnet': {'id': '732e61b1-84e5-4a05-bdfc-bb15c54ea609', 'name': '', 'tenant_id': '92cbaa15697c404c9be2f65483dbb950', 'network_id': '8b2404f0-0819-4bd0-8f2c-13df494310ee', 'ip_version': 4, 'cidr': '67.36.61.64/26', 'allocation_pools': [{'start': '67.36.61.66', 'end': '67.36.61.126'}], 'gateway_ip': '67.36.61.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.36.61.66', 'tags': [], 'project_id': '92cbaa15697c404c9be2f65483dbb950'}}
2024-10-21 02:29:47,174 - INFO - Created VN ctest-vn-56144839
2024-10-21 02:29:47,232 - DEBUG - VN ctest-vn-56144839 UUID is 8b2404f0-0819-4bd0-8f2c-13df494310ee
2024-10-21 02:29:47,609 - DEBUG - Response for create_network : {'network': {'id': '283b4876-3495-4563-84ce-3a0d77301a96', 'name': 'ctest-vn-58660542', 'tenant_id': '92cbaa15697c404c9be2f65483dbb950', 'project_id': '92cbaa15697c404c9be2f65483dbb950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87147283', 'ctest-vn-58660542'], 'port_security_enabled': True, 'description': ''}}
2024-10-21 02:29:47,795 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a868b544-8573-4afc-a7b0-a7bcc2690d4a', 'name': '', 'tenant_id': '92cbaa15697c404c9be2f65483dbb950', 'network_id': '283b4876-3495-4563-84ce-3a0d77301a96', 'ip_version': 4, 'cidr': '27.93.94.64/26', 'allocation_pools': [{'start': '27.93.94.66', 'end': '27.93.94.126'}], 'gateway_ip': '27.93.94.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.93.94.66', 'tags': [], 'project_id': '92cbaa15697c404c9be2f65483dbb950'}}
2024-10-21 02:29:47,819 - INFO - Created VN ctest-vn-58660542
2024-10-21 02:29:47,881 - DEBUG - VN ctest-vn-58660542 UUID is 283b4876-3495-4563-84ce-3a0d77301a96
2024-10-21 02:29:48,024 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-56144839, 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-87147283:ctest-vn-58660542, 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-10-21 02:29:48,377 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b2404f0-0819-4bd0-8f2c-13df494310ee', 'name': 'ctest-vn-56144839', 'tenant_id': '92cbaa15697c404c9be2f65483dbb950', 'project_id': '92cbaa15697c404c9be2f65483dbb950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['732e61b1-84e5-4a05-bdfc-bb15c54ea609'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87147283', 'ctest-vn-56144839'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87147283', 'ctest-policy-allow-all-99424707']], 'subnet_ipam': [{'subnet_cidr': '67.36.61.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-21 02:29:48,663 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '283b4876-3495-4563-84ce-3a0d77301a96', 'name': 'ctest-vn-58660542', 'tenant_id': '92cbaa15697c404c9be2f65483dbb950', 'project_id': '92cbaa15697c404c9be2f65483dbb950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a868b544-8573-4afc-a7b0-a7bcc2690d4a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87147283', 'ctest-vn-58660542'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87147283', 'ctest-policy-allow-all-99424707']], 'subnet_ipam': [{'subnet_cidr': '27.93.94.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-21 02:29:48,848 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-21 02:29:49,197 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-21 02:29:49,238 - DEBUG - Requesting: http://10.0.0.32:8082/domain/c68dda55-aa39-4297-8407-793b327cbe14
2024-10-21 02:29:49,258 - DEBUG - Requesting: http://10.0.0.32:8082/project/92cbaa15-697c-404c-9be2-f65483dbb950
2024-10-21 02:29:49,349 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8b2404f0-0819-4bd0-8f2c-13df494310ee
2024-10-21 02:29:49,368 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8b2404f0-0819-4bd0-8f2c-13df494310ee
2024-10-21 02:29:49,386 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/693e6c9d-fa51-49bc-9a01-a8c6ba193baa
2024-10-21 02:29:49,397 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/693e6c9d-fa51-49bc-9a01-a8c6ba193baa
2024-10-21 02:29:49,409 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/0b6e0659-a9db-4e23-8903-6804b80e4111
2024-10-21 02:29:49,419 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-21 02:29:49,419 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8b2404f0-0819-4bd0-8f2c-13df494310ee
2024-10-21 02:29:49,436 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/693e6c9d-fa51-49bc-9a01-a8c6ba193baa
2024-10-21 02:29:49,462 - INFO - Verified VN network id 8 for VN 8b2404f0-0819-4bd0-8f2c-13df494310ee
2024-10-21 02:29:49,462 - INFO - Verifications in API Server for VN ctest-vn-56144839 passed
2024-10-21 02:29:49,462 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8b2404f0-0819-4bd0-8f2c-13df494310ee
2024-10-21 02:29:49,480 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/693e6c9d-fa51-49bc-9a01-a8c6ba193baa
2024-10-21 02:29:49,491 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/693e6c9d-fa51-49bc-9a01-a8c6ba193baa
2024-10-21 02:29:49,502 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/0b6e0659-a9db-4e23-8903-6804b80e4111
2024-10-21 02:29:49,518 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-56144839', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87147283', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10026144099408104400', 'uuid-lslong': '10316642696126730478'}, 'enable': 'true', 'created': '2024-10-21T02:29:46', 'last-modified': '2024-10-21T02:29:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.186353'}
2024-10-21 02:29:49,528 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-21 02:29:49,528 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56144839 passed
2024-10-21 02:29:49,528 - DEBUG - ====Verifying policy data for ctest-vn-56144839 in API_Server ======
2024-10-21 02:29:49,528 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-21 02:29:49,537 - DEBUG - Requesting: http://10.0.0.32:8082/domain/c68dda55-aa39-4297-8407-793b327cbe14
2024-10-21 02:29:49,555 - DEBUG - Requesting: http://10.0.0.32:8082/project/92cbaa15-697c-404c-9be2-f65483dbb950
2024-10-21 02:29:49,646 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8b2404f0-0819-4bd0-8f2c-13df494310ee
2024-10-21 02:29:49,665 - DEBUG - ==>Verifying data for policy with id: 9ec7ca76-5d29-4358-9b07-a5a32caa0a6d, fqn: ['default-domain', 'ctest-TestBasicPolicy-87147283', 'ctest-policy-allow-all-99424707']
2024-10-21 02:29:49,665 - INFO - VN ctest-vn-56144839 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-21 02:29:49,665 - DEBUG - Verifying the vn in opserver
2024-10-21 02:29:49,665 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-56144839 virtual network link through opserver 10.0.0.32
2024-10-21 02:29:49,666 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-21 02:29:50,010 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-21 02:29:50,093 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-56144839', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-56144839?flat'}
2024-10-21 02:29:50,093 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-56144839 is found in opserver
2024-10-21 02:29:50,106 - DEBUG - Do not have enough data to verify VN in agent
2024-10-21 02:29:50,113 - DEBUG - VRF ids for VN ctest-vn-56144839: {}
2024-10-21 02:29:50,113 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-21 02:29:50,121 - DEBUG - Requesting: http://10.0.0.32:8082/domain/c68dda55-aa39-4297-8407-793b327cbe14
2024-10-21 02:29:50,138 - DEBUG - Requesting: http://10.0.0.32:8082/project/92cbaa15-697c-404c-9be2-f65483dbb950
2024-10-21 02:29:50,233 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/283b4876-3495-4563-84ce-3a0d77301a96
2024-10-21 02:29:50,253 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/283b4876-3495-4563-84ce-3a0d77301a96
2024-10-21 02:29:50,271 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/fc87d8ac-313c-4b7f-8e81-191235848c1d
2024-10-21 02:29:50,284 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/fc87d8ac-313c-4b7f-8e81-191235848c1d
2024-10-21 02:29:50,296 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/9ae20922-69aa-4c01-9a2b-97cf753260ca
2024-10-21 02:29:50,306 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-21 02:29:50,306 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/283b4876-3495-4563-84ce-3a0d77301a96
2024-10-21 02:29:50,325 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/fc87d8ac-313c-4b7f-8e81-191235848c1d
2024-10-21 02:29:50,354 - INFO - Verified VN network id 9 for VN 283b4876-3495-4563-84ce-3a0d77301a96
2024-10-21 02:29:50,354 - INFO - Verifications in API Server for VN ctest-vn-58660542 passed
2024-10-21 02:29:50,355 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/283b4876-3495-4563-84ce-3a0d77301a96
2024-10-21 02:29:50,373 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/fc87d8ac-313c-4b7f-8e81-191235848c1d
2024-10-21 02:29:50,385 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/fc87d8ac-313c-4b7f-8e81-191235848c1d
2024-10-21 02:29:50,395 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/9ae20922-69aa-4c01-9a2b-97cf753260ca
2024-10-21 02:29:50,413 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-58660542', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87147283', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2898990457668584803', 'uuid-lslong': '9569650087717509782'}, 'enable': 'true', 'created': '2024-10-21T02:29:47', 'last-modified': '2024-10-21T02:29:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.787877'}
2024-10-21 02:29:50,421 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-21 02:29:50,421 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58660542 passed
2024-10-21 02:29:50,421 - DEBUG - ====Verifying policy data for ctest-vn-58660542 in API_Server ======
2024-10-21 02:29:50,422 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-21 02:29:50,430 - DEBUG - Requesting: http://10.0.0.32:8082/domain/c68dda55-aa39-4297-8407-793b327cbe14
2024-10-21 02:29:50,449 - DEBUG - Requesting: http://10.0.0.32:8082/project/92cbaa15-697c-404c-9be2-f65483dbb950
2024-10-21 02:29:50,545 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/283b4876-3495-4563-84ce-3a0d77301a96
2024-10-21 02:29:50,562 - DEBUG - ==>Verifying data for policy with id: 9ec7ca76-5d29-4358-9b07-a5a32caa0a6d, fqn: ['default-domain', 'ctest-TestBasicPolicy-87147283', 'ctest-policy-allow-all-99424707']
2024-10-21 02:29:50,562 - INFO - VN ctest-vn-58660542 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-21 02:29:50,562 - DEBUG - Verifying the vn in opserver
2024-10-21 02:29:50,562 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-58660542 virtual network link through opserver 10.0.0.32
2024-10-21 02:29:50,562 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-21 02:29:50,576 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-58660542', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-58660542?flat'}
2024-10-21 02:29:50,576 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87147283:ctest-vn-58660542 is found in opserver
2024-10-21 02:29:50,590 - DEBUG - Do not have enough data to verify VN in agent
2024-10-21 02:29:50,597 - DEBUG - VRF ids for VN ctest-vn-58660542: {}
2024-10-21 02:29:50,663 - DEBUG - Services list from nova: [