2024-08-21 03:23:32,683 - INFO - Domain Default found not creating
2024-08-21 03:23:32,871 - INFO - Project ctest-TestBasicPolicy-41964045 not found, creating it
2024-08-21 03:23:33,383 - INFO - Created Project:ctest-TestBasicPolicy-41964045, ID : 3d99991d-da5c-4539-aed9-fe335322a91e
2024-08-21 03:23:35,196 - INFO - ================================================================================
2024-08-21 03:23:35,196 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-21 03:23:35,197 - 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-08-21 03:23:35,486 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.26': '0'}} with
2024-08-21 03:23:35,486 - INFO - Initial checks done. Running the testcase now
2024-08-21 03:23:35,487 - INFO -
2024-08-21 03:23:36,086 - DEBUG - Response for create_network : {'network': {'id': '76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02', 'name': 'ctest-vn-75509368', 'tenant_id': '3d99991dda5c4539aed9fe335322a91e', 'project_id': '3d99991dda5c4539aed9fe335322a91e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41964045', 'ctest-vn-75509368'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 03:23:36,331 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b773a907-1e9a-482f-933b-42584a731ad7', 'name': '', 'tenant_id': '3d99991dda5c4539aed9fe335322a91e', 'network_id': '76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02', 'ip_version': 4, 'cidr': '11.215.215.192/26', 'allocation_pools': [{'start': '11.215.215.194', 'end': '11.215.215.254'}], 'gateway_ip': '11.215.215.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.215.215.194', 'tags': [], 'project_id': '3d99991dda5c4539aed9fe335322a91e'}}
2024-08-21 03:23:36,354 - INFO - Created VN ctest-vn-75509368
2024-08-21 03:23:36,408 - DEBUG - VN ctest-vn-75509368 UUID is 76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02
2024-08-21 03:23:36,755 - DEBUG - Response for create_network : {'network': {'id': '079c1d57-77e1-4163-bfa1-354affd7819c', 'name': 'ctest-vn-43893371', 'tenant_id': '3d99991dda5c4539aed9fe335322a91e', 'project_id': '3d99991dda5c4539aed9fe335322a91e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41964045', 'ctest-vn-43893371'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 03:23:36,969 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7f6d535-8b48-4cc0-a152-b76094018252', 'name': '', 'tenant_id': '3d99991dda5c4539aed9fe335322a91e', 'network_id': '079c1d57-77e1-4163-bfa1-354affd7819c', 'ip_version': 4, 'cidr': '204.157.91.128/26', 'allocation_pools': [{'start': '204.157.91.130', 'end': '204.157.91.190'}], 'gateway_ip': '204.157.91.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.157.91.130', 'tags': [], 'project_id': '3d99991dda5c4539aed9fe335322a91e'}}
2024-08-21 03:23:36,991 - INFO - Created VN ctest-vn-43893371
2024-08-21 03:23:37,044 - DEBUG - VN ctest-vn-43893371 UUID is 079c1d57-77e1-4163-bfa1-354affd7819c
2024-08-21 03:23:37,176 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-75509368, 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-41964045:ctest-vn-43893371, 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-08-21 03:23:37,496 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02', 'name': 'ctest-vn-75509368', 'tenant_id': '3d99991dda5c4539aed9fe335322a91e', 'project_id': '3d99991dda5c4539aed9fe335322a91e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b773a907-1e9a-482f-933b-42584a731ad7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41964045', 'ctest-vn-75509368'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41964045', 'ctest-policy-allow-all-28351592']], 'subnet_ipam': [{'subnet_cidr': '11.215.215.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 03:23:37,758 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '079c1d57-77e1-4163-bfa1-354affd7819c', 'name': 'ctest-vn-43893371', 'tenant_id': '3d99991dda5c4539aed9fe335322a91e', 'project_id': '3d99991dda5c4539aed9fe335322a91e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f7f6d535-8b48-4cc0-a152-b76094018252'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41964045', 'ctest-vn-43893371'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41964045', 'ctest-policy-allow-all-28351592']], 'subnet_ipam': [{'subnet_cidr': '204.157.91.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 03:23:37,932 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-08-21 03:23:38,284 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-08-21 03:23:38,322 - DEBUG - Requesting: http://10.0.0.17:8082/domain/088116c3-083a-439a-b691-a7a7647462aa
2024-08-21 03:23:38,343 - DEBUG - Requesting: http://10.0.0.17:8082/project/3d99991d-da5c-4539-aed9-fe335322a91e
2024-08-21 03:23:38,424 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02
2024-08-21 03:23:38,435 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02
2024-08-21 03:23:38,445 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/6a8550fc-8754-4d74-8005-be2766538b24
2024-08-21 03:23:38,454 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/6a8550fc-8754-4d74-8005-be2766538b24
2024-08-21 03:23:38,462 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/75d224fb-d2ed-447c-82e6-8928773e6181
2024-08-21 03:23:38,470 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 03:23:38,471 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02
2024-08-21 03:23:38,482 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/6a8550fc-8754-4d74-8005-be2766538b24
2024-08-21 03:23:38,499 - INFO - Verified VN network id 9 for VN 76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02
2024-08-21 03:23:38,499 - INFO - Verifications in API Server for VN ctest-vn-75509368 passed
2024-08-21 03:23:38,499 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02
2024-08-21 03:23:38,510 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/6a8550fc-8754-4d74-8005-be2766538b24
2024-08-21 03:23:38,519 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/6a8550fc-8754-4d74-8005-be2766538b24
2024-08-21 03:23:38,527 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/75d224fb-d2ed-447c-82e6-8928773e6181
2024-08-21 03:23:38,542 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-75509368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41964045', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8567152972537219934', 'uuid-lslong': '10002861738077150210'}, 'enable': 'true', 'created': '2024-08-21T03:23:36', 'last-modified': '2024-08-21T03:23:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.076203'}
2024-08-21 03:23:38,550 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 03:23:38,550 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75509368 passed
2024-08-21 03:23:38,550 - DEBUG - ====Verifying policy data for ctest-vn-75509368 in API_Server ======
2024-08-21 03:23:38,550 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-08-21 03:23:38,558 - DEBUG - Requesting: http://10.0.0.17:8082/domain/088116c3-083a-439a-b691-a7a7647462aa
2024-08-21 03:23:38,572 - DEBUG - Requesting: http://10.0.0.17:8082/project/3d99991d-da5c-4539-aed9-fe335322a91e
2024-08-21 03:23:38,652 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/76e4a43c-e083-4b5e-8ad1-4dc0db6f5c02
2024-08-21 03:23:38,662 - DEBUG - ==>Verifying data for policy with id: b394b8f6-0b31-460b-8d23-26f81a2fe42b, fqn: ['default-domain', 'ctest-TestBasicPolicy-41964045', 'ctest-policy-allow-all-28351592']
2024-08-21 03:23:38,662 - INFO - VN ctest-vn-75509368 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 03:23:38,662 - DEBUG - Verifying the vn in opserver
2024-08-21 03:23:38,662 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-75509368 virtual network link through opserver 10.0.0.17
2024-08-21 03:23:38,663 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-08-21 03:23:38,999 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-08-21 03:23:39,074 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-75509368', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-75509368?flat'}
2024-08-21 03:23:39,074 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-75509368 is found in opserver
2024-08-21 03:23:39,089 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 03:23:39,096 - DEBUG - VRF ids for VN ctest-vn-75509368: {}
2024-08-21 03:23:39,097 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-08-21 03:23:39,105 - DEBUG - Requesting: http://10.0.0.17:8082/domain/088116c3-083a-439a-b691-a7a7647462aa
2024-08-21 03:23:39,119 - DEBUG - Requesting: http://10.0.0.17:8082/project/3d99991d-da5c-4539-aed9-fe335322a91e
2024-08-21 03:23:39,196 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/079c1d57-77e1-4163-bfa1-354affd7819c
2024-08-21 03:23:39,208 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/079c1d57-77e1-4163-bfa1-354affd7819c
2024-08-21 03:23:39,217 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/8d3aa1c8-f743-42e3-a97b-7e581601d1a4
2024-08-21 03:23:39,226 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/8d3aa1c8-f743-42e3-a97b-7e581601d1a4
2024-08-21 03:23:39,234 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/9f755569-1507-49da-8788-a2bc8bd9ae67
2024-08-21 03:23:39,241 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 03:23:39,241 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/079c1d57-77e1-4163-bfa1-354affd7819c
2024-08-21 03:23:39,250 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/8d3aa1c8-f743-42e3-a97b-7e581601d1a4
2024-08-21 03:23:39,266 - INFO - Verified VN network id 10 for VN 079c1d57-77e1-4163-bfa1-354affd7819c
2024-08-21 03:23:39,266 - INFO - Verifications in API Server for VN ctest-vn-43893371 passed
2024-08-21 03:23:39,267 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/079c1d57-77e1-4163-bfa1-354affd7819c
2024-08-21 03:23:39,277 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/8d3aa1c8-f743-42e3-a97b-7e581601d1a4
2024-08-21 03:23:39,287 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/8d3aa1c8-f743-42e3-a97b-7e581601d1a4
2024-08-21 03:23:39,295 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/9f755569-1507-49da-8788-a2bc8bd9ae67
2024-08-21 03:23:39,311 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-43893371', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41964045', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '548345516142969187', 'uuid-lslong': '13808376528730816924'}, 'enable': 'true', 'created': '2024-08-21T03:23:36', 'last-modified': '2024-08-21T03:23:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.586438'}
2024-08-21 03:23:39,318 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 03:23:39,318 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43893371 passed
2024-08-21 03:23:39,318 - DEBUG - ====Verifying policy data for ctest-vn-43893371 in API_Server ======
2024-08-21 03:23:39,319 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-08-21 03:23:39,327 - DEBUG - Requesting: http://10.0.0.17:8082/domain/088116c3-083a-439a-b691-a7a7647462aa
2024-08-21 03:23:39,343 - DEBUG - Requesting: http://10.0.0.17:8082/project/3d99991d-da5c-4539-aed9-fe335322a91e
2024-08-21 03:23:39,417 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/079c1d57-77e1-4163-bfa1-354affd7819c
2024-08-21 03:23:39,427 - DEBUG - ==>Verifying data for policy with id: b394b8f6-0b31-460b-8d23-26f81a2fe42b, fqn: ['default-domain', 'ctest-TestBasicPolicy-41964045', 'ctest-policy-allow-all-28351592']
2024-08-21 03:23:39,427 - INFO - VN ctest-vn-43893371 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 03:23:39,427 - DEBUG - Verifying the vn in opserver
2024-08-21 03:23:39,427 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-43893371 virtual network link through opserver 10.0.0.17
2024-08-21 03:23:39,427 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-08-21 03:23:39,441 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-43893371', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-43893371?flat'}
2024-08-21 03:23:39,441 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41964045:ctest-vn-43893371 is found in opserver
2024-08-21 03:23:39,453 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 03:23:39,459 - DEBUG - VRF ids for VN ctest-vn-43893371: {}
2024-08-21 03:23:39,540 - DEBUG - Services list from nova: [