2024-10-17 02:44:10,326 - INFO - Domain Default found not creating
2024-10-17 02:44:10,534 - INFO - Project ctest-TestBasicPolicy-22195130 not found, creating it
2024-10-17 02:44:11,049 - INFO - Created Project:ctest-TestBasicPolicy-22195130, ID : 5abf2c62-7ee9-4d4d-a94c-0477658e2419
2024-10-17 02:44:12,784 - INFO - ================================================================================
2024-10-17 02:44:12,785 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-17 02:44:12,785 - 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-17 02:44:13,047 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.6': '0'}} with
2024-10-17 02:44:13,047 - INFO - Initial checks done. Running the testcase now
2024-10-17 02:44:13,047 - INFO -
2024-10-17 02:44:13,698 - DEBUG - Response for create_network : {'network': {'id': 'db9c4b52-8fc4-4afc-90eb-91864da64738', 'name': 'ctest-vn-93842315', 'tenant_id': '5abf2c627ee94d4da94c0477658e2419', 'project_id': '5abf2c627ee94d4da94c0477658e2419', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22195130', 'ctest-vn-93842315'], 'port_security_enabled': True, 'description': ''}}
2024-10-17 02:44:13,885 - DEBUG - Response for create_subnet : {'subnet': {'id': '9725fa04-64d7-4810-99e2-8ace9b4d8004', 'name': '', 'tenant_id': '5abf2c627ee94d4da94c0477658e2419', 'network_id': 'db9c4b52-8fc4-4afc-90eb-91864da64738', 'ip_version': 4, 'cidr': '90.62.174.192/26', 'allocation_pools': [{'start': '90.62.174.194', 'end': '90.62.174.254'}], 'gateway_ip': '90.62.174.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.62.174.194', 'tags': [], 'project_id': '5abf2c627ee94d4da94c0477658e2419'}}
2024-10-17 02:44:13,908 - INFO - Created VN ctest-vn-93842315
2024-10-17 02:44:13,960 - DEBUG - VN ctest-vn-93842315 UUID is db9c4b52-8fc4-4afc-90eb-91864da64738
2024-10-17 02:44:14,287 - DEBUG - Response for create_network : {'network': {'id': 'b988b8d2-268e-49f8-aaf5-6871b80a3fa2', 'name': 'ctest-vn-85589532', 'tenant_id': '5abf2c627ee94d4da94c0477658e2419', 'project_id': '5abf2c627ee94d4da94c0477658e2419', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22195130', 'ctest-vn-85589532'], 'port_security_enabled': True, 'description': ''}}
2024-10-17 02:44:14,467 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0b8b018-3937-4f86-99b3-d82d8bfd3418', 'name': '', 'tenant_id': '5abf2c627ee94d4da94c0477658e2419', 'network_id': 'b988b8d2-268e-49f8-aaf5-6871b80a3fa2', 'ip_version': 4, 'cidr': '189.62.162.64/26', 'allocation_pools': [{'start': '189.62.162.66', 'end': '189.62.162.126'}], 'gateway_ip': '189.62.162.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.62.162.66', 'tags': [], 'project_id': '5abf2c627ee94d4da94c0477658e2419'}}
2024-10-17 02:44:14,498 - INFO - Created VN ctest-vn-85589532
2024-10-17 02:44:14,552 - DEBUG - VN ctest-vn-85589532 UUID is b988b8d2-268e-49f8-aaf5-6871b80a3fa2
2024-10-17 02:44:14,688 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-93842315, 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-22195130:ctest-vn-85589532, 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-17 02:44:15,014 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db9c4b52-8fc4-4afc-90eb-91864da64738', 'name': 'ctest-vn-93842315', 'tenant_id': '5abf2c627ee94d4da94c0477658e2419', 'project_id': '5abf2c627ee94d4da94c0477658e2419', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9725fa04-64d7-4810-99e2-8ace9b4d8004'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22195130', 'ctest-vn-93842315'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22195130', 'ctest-policy-allow-all-31443300']], 'subnet_ipam': [{'subnet_cidr': '90.62.174.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-17 02:44:15,265 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b988b8d2-268e-49f8-aaf5-6871b80a3fa2', 'name': 'ctest-vn-85589532', 'tenant_id': '5abf2c627ee94d4da94c0477658e2419', 'project_id': '5abf2c627ee94d4da94c0477658e2419', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0b8b018-3937-4f86-99b3-d82d8bfd3418'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22195130', 'ctest-vn-85589532'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22195130', 'ctest-policy-allow-all-31443300']], 'subnet_ipam': [{'subnet_cidr': '189.62.162.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-17 02:44:15,448 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-10-17 02:44:15,788 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-10-17 02:44:15,830 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e6845da4-15ec-4fa4-a1d2-ed77ee9bebed
2024-10-17 02:44:15,850 - DEBUG - Requesting: http://10.0.0.43:8082/project/5abf2c62-7ee9-4d4d-a94c-0477658e2419
2024-10-17 02:44:15,927 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/db9c4b52-8fc4-4afc-90eb-91864da64738
2024-10-17 02:44:15,938 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/db9c4b52-8fc4-4afc-90eb-91864da64738
2024-10-17 02:44:15,947 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/b66f045a-1bdc-47a9-a0f9-a2c5593028cc
2024-10-17 02:44:15,955 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/b66f045a-1bdc-47a9-a0f9-a2c5593028cc
2024-10-17 02:44:15,962 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/68b93223-59ec-4d75-98a8-3df869b5f90b
2024-10-17 02:44:15,968 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-17 02:44:15,968 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/db9c4b52-8fc4-4afc-90eb-91864da64738
2024-10-17 02:44:15,977 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/b66f045a-1bdc-47a9-a0f9-a2c5593028cc
2024-10-17 02:44:15,992 - INFO - Verified VN network id 8 for VN db9c4b52-8fc4-4afc-90eb-91864da64738
2024-10-17 02:44:15,992 - INFO - Verifications in API Server for VN ctest-vn-93842315 passed
2024-10-17 02:44:15,992 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/db9c4b52-8fc4-4afc-90eb-91864da64738
2024-10-17 02:44:16,002 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/b66f045a-1bdc-47a9-a0f9-a2c5593028cc
2024-10-17 02:44:16,010 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/b66f045a-1bdc-47a9-a0f9-a2c5593028cc
2024-10-17 02:44:16,019 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/68b93223-59ec-4d75-98a8-3df869b5f90b
2024-10-17 02:44:16,035 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-93842315', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22195130', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15824606008644487932', 'uuid-lslong': '10442600167003014968'}, 'enable': 'true', 'created': '2024-10-17T02:44:13', 'last-modified': '2024-10-17T02:44:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.052182'}
2024-10-17 02:44:16,044 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-17 02:44:16,044 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93842315 passed
2024-10-17 02:44:16,044 - DEBUG - ====Verifying policy data for ctest-vn-93842315 in API_Server ======
2024-10-17 02:44:16,044 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-10-17 02:44:16,052 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e6845da4-15ec-4fa4-a1d2-ed77ee9bebed
2024-10-17 02:44:16,065 - DEBUG - Requesting: http://10.0.0.43:8082/project/5abf2c62-7ee9-4d4d-a94c-0477658e2419
2024-10-17 02:44:16,138 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/db9c4b52-8fc4-4afc-90eb-91864da64738
2024-10-17 02:44:16,147 - DEBUG - ==>Verifying data for policy with id: 33917fdb-3a44-41b4-b0dd-c7ebbd7665d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-22195130', 'ctest-policy-allow-all-31443300']
2024-10-17 02:44:16,147 - INFO - VN ctest-vn-93842315 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-17 02:44:16,147 - DEBUG - Verifying the vn in opserver
2024-10-17 02:44:16,147 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-93842315 virtual network link through opserver 10.0.0.43
2024-10-17 02:44:16,148 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2024-10-17 02:44:16,485 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2024-10-17 02:44:16,555 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-93842315', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-93842315?flat'}
2024-10-17 02:44:16,555 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-93842315 is found in opserver
2024-10-17 02:44:16,568 - DEBUG - Do not have enough data to verify VN in agent
2024-10-17 02:44:16,574 - DEBUG - VRF ids for VN ctest-vn-93842315: {}
2024-10-17 02:44:16,574 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-10-17 02:44:16,581 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e6845da4-15ec-4fa4-a1d2-ed77ee9bebed
2024-10-17 02:44:16,595 - DEBUG - Requesting: http://10.0.0.43:8082/project/5abf2c62-7ee9-4d4d-a94c-0477658e2419
2024-10-17 02:44:16,671 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b988b8d2-268e-49f8-aaf5-6871b80a3fa2
2024-10-17 02:44:16,684 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b988b8d2-268e-49f8-aaf5-6871b80a3fa2
2024-10-17 02:44:16,694 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/71a7cabf-ba69-454a-b9bb-7ea9da654974
2024-10-17 02:44:16,703 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/71a7cabf-ba69-454a-b9bb-7ea9da654974
2024-10-17 02:44:16,714 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/7d31105b-d8e8-46a4-8f7b-e445be0d6a22
2024-10-17 02:44:16,725 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-17 02:44:16,725 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b988b8d2-268e-49f8-aaf5-6871b80a3fa2
2024-10-17 02:44:16,739 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/71a7cabf-ba69-454a-b9bb-7ea9da654974
2024-10-17 02:44:16,758 - INFO - Verified VN network id 9 for VN b988b8d2-268e-49f8-aaf5-6871b80a3fa2
2024-10-17 02:44:16,758 - INFO - Verifications in API Server for VN ctest-vn-85589532 passed
2024-10-17 02:44:16,758 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b988b8d2-268e-49f8-aaf5-6871b80a3fa2
2024-10-17 02:44:16,771 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/71a7cabf-ba69-454a-b9bb-7ea9da654974
2024-10-17 02:44:16,782 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/71a7cabf-ba69-454a-b9bb-7ea9da654974
2024-10-17 02:44:16,791 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/7d31105b-d8e8-46a4-8f7b-e445be0d6a22
2024-10-17 02:44:16,807 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-85589532', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22195130', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13369138706578819576', 'uuid-lslong': '12318867193370132386'}, 'enable': 'true', 'created': '2024-10-17T02:44:14', 'last-modified': '2024-10-17T02:44:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.565926'}
2024-10-17 02:44:16,814 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-17 02:44:16,814 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85589532 passed
2024-10-17 02:44:16,815 - DEBUG - ====Verifying policy data for ctest-vn-85589532 in API_Server ======
2024-10-17 02:44:16,815 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2024-10-17 02:44:16,822 - DEBUG - Requesting: http://10.0.0.43:8082/domain/e6845da4-15ec-4fa4-a1d2-ed77ee9bebed
2024-10-17 02:44:16,836 - DEBUG - Requesting: http://10.0.0.43:8082/project/5abf2c62-7ee9-4d4d-a94c-0477658e2419
2024-10-17 02:44:16,911 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/b988b8d2-268e-49f8-aaf5-6871b80a3fa2
2024-10-17 02:44:16,921 - DEBUG - ==>Verifying data for policy with id: 33917fdb-3a44-41b4-b0dd-c7ebbd7665d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-22195130', 'ctest-policy-allow-all-31443300']
2024-10-17 02:44:16,921 - INFO - VN ctest-vn-85589532 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-17 02:44:16,921 - DEBUG - Verifying the vn in opserver
2024-10-17 02:44:16,921 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-85589532 virtual network link through opserver 10.0.0.43
2024-10-17 02:44:16,921 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2024-10-17 02:44:16,935 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-85589532', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-85589532?flat'}
2024-10-17 02:44:16,935 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22195130:ctest-vn-85589532 is found in opserver
2024-10-17 02:44:16,948 - DEBUG - Do not have enough data to verify VN in agent
2024-10-17 02:44:16,953 - DEBUG - VRF ids for VN ctest-vn-85589532: {}
2024-10-17 02:44:17,034 - DEBUG - Services list from nova: [